Closed RPalejiya closed 2 years ago
Here is the test that fails with ADO wrapper.
command.CommandText = "PRAGMA show('integers');"; reader = command.ExecuteReader(); PrintQueryResults(reader);
To Fix, I had changed DuckDbDataReader.cs for following code to check for zero IntPtr.
public override string GetString(int ordinal) { var unmanagedString = PlatformIndependentBindings.NativeMethods.DuckDBValueVarchar(queryResult, ordinal, currentRow); return (unmanagedString.Equals(IntPtr.Zero)) ? "" : unmanagedString.ToManagedString(); }
Thanks, Ravi
Can you send a PR?
Here is the test that fails with ADO wrapper.
To Fix, I had changed DuckDbDataReader.cs for following code to check for zero IntPtr.
Thanks, Ravi