diff options
author | EgorBo <egorbo@gmail.com> | 2018-08-02 14:55:26 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-08-03 15:09:39 +0300 |
commit | f3a2216b65aa881c40ee34763b8517296f9f8a63 (patch) | |
tree | fc8da20626936fc61f0434cd3a51cde97a40b459 | |
parent | 07ac08973505eb71fbba6dcafd3a3266aeaf620f (diff) |
backport #9800 to 2018-04mono-5.14.0.177
-rw-r--r-- | mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs b/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs index df1f227cd53..9e7c766333b 100644 --- a/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs +++ b/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs @@ -804,7 +804,7 @@ namespace Mono.Data.Sqlite int enc;
IntPtr p = UnsafeNativeMethods.sqlite3_context_collseq(context, out type, out enc, out len);
- if (p != null) seq.Name = UTF8ToString(p, len);
+ if (p != IntPtr.Zero) seq.Name = UTF8ToString(p, len);
seq.Type = (CollationTypeEnum)type;
seq._func = func;
seq.Encoding = (CollationEncodingEnum)enc;
|