* Mono.Data.SqliteClient/Sqlite.cs:
Mono.Data.SqliteClient/SqliteCommand.cs:
Remove sqlite3Free as this doesn't exist and isn't used by sqlite3.
svn path=/trunk/mcs/; revision=36232
+2004-11-17 Geoff Norton <gnorton@customerdna.com>
+
+ * Mono.Data.SqliteClient/Sqlite.cs:
+ Mono.Data.SqliteClient/SqliteCommand.cs:
+ Remove sqlite3Free as this doesn't exist and isn't used by sqlite3.
+
2004-11-14 Geoff Norton <gnorton@customerdna.com>
* Mono.Data.SqliteClient/SqliteConnection.cs: Default to v2 not v3 if version
[DllImport("sqlite3")]
internal static extern int sqlite3_last_insert_rowid (IntPtr sqlite_handle);
- [DllImport ("sqlite3")]
- internal static extern void sqlite3Free (IntPtr ptr);
-
[DllImport ("sqlite3")]
internal static extern SqliteError sqlite3_prepare (IntPtr sqlite_handle, string zSql, int zSqllen, out IntPtr pVm, out IntPtr pzTail);
if (err != SqliteError.OK) {
if (errMsg != IntPtr.Zero) {
msg = Marshal.PtrToStringAnsi (errMsg);
- if (parent_conn.Version == 3)
- Sqlite.sqlite3Free (errMsg);
- else
+ if (parent_conn.Version != 3)
Sqlite.sqliteFree (errMsg);
}
throw new ApplicationException ("Sqlite error " + msg);