[mono-android] Using SqliteDataAdapter to fill DataTable
Liam
liamhoulahan at gmail.com
Tue Mar 22 04:39:50 EDT 2011
Hi
I am trying to use an SqliteDataAdapter to fill a DataTable but I am
getting the exception pasted at the bottom of this email. I couldn't
find anything on this as being a bug or any evidence that anyone has
implemented this successfully in MonoDroid.
I did however find that there was a bug in MonoTouch
https://bugzilla.novell.com/show_bug.cgi?id=579292 that looks very
similar to this.
So is this a bug? If yes is it known to be a bug and is it going to be
fixed?
Thanks
Liam
System.EntryPointNotFoundException: sqlite3_column_origin_name
at (wrapper managed-to-native)
Mono.Data.Sqlite.UnsafeNativeMethods:sqlite3_column_origin_name (intptr,int)
at Mono.Data.Sqlite.SQLite3.ColumnOriginalName
(Mono.Data.Sqlite.SqliteStatement stmt, Int32 index) [0x00000] in
/home/jon/Development/mono-droid/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs:493
at Mono.Data.Sqlite.SqliteDataReader.GetSchemaTable (Boolean
wantUniqueInfo, Boolean wantDefaultValue) [0x0042d] in
/home/jon/Development/mono-droid/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteDataReader.cs:619
at Mono.Data.Sqlite.SqliteDataReader.GetSchemaTable () [0x00000] in
/home/jon/Development/mono-droid/mono/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteDataReader.cs:550
at System.Data.Common.DataAdapter.BuildSchema (IDataReader reader,
System.Data.DataTable table, SchemaType schemaType, MissingSchemaAction
missingSchAction, MissingMappingAction missingMapAction,
System.Data.Common.DataTableMappingCollection dtMapping) [0x0003b] in
/home/jon/Development/mono-droid/mono/mcs/class/System.Data/System.Data.Common/DataAdapter.cs:284
at System.Data.Common.DataAdapter.BuildSchema (IDataReader reader,
System.Data.DataTable table, SchemaType schemaType) [0x00000] in
/home/jon/Development/mono-droid/mono/mcs/class/System.Data/System.Data.Common/DataAdapter.cs:257
at System.Data.Common.DataAdapter.FillTable (System.Data.DataTable
dataTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords,
System.Int32& counter) [0x00011] in
/home/jon/Development/mono-droid/mono/mcs/class/System.Data/System.Data.Common/DataAdapter.cs:428
at System.Data.Common.DataAdapter.FillInternal (System.Data.DataTable
dataTable, IDataReader dataReader) [0x00030] in
/home/jon/Development/mono-droid/mono/mcs/class/System.Data/System.Data.Common/DataAdapter.cs:242
at System.Data.Common.DataAdapter.Fill (System.Data.DataTable
dataTable, IDataReader dataReader) [0x00000] in
/home/jon/Development/mono-droid/mono/mcs/class/System.Data/System.Data.Common/DataAdapter.cs:558
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable
dataTable, IDbCommand command, CommandBehavior behavior) [0x00022] in
/home/jon/Development/mono-droid/mono/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs:297
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable
dataTable) [0x00011] in
/home/jon/Development/mono-droid/mono/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs:273
at (wrapper remoting-invoke-with-check)
System.Data.Common.DbDataAdapter:Fill (System.Data.DataTable)
at CrashApp.DataService.getPersons () [0x0002d] in
C:\Users\Liam\Documents\SCHOOL\2011S1\BIS
Project\Code\CrashApp\CrashApp.MonoDroid\DataService.cs:100
More information about the Monodroid
mailing list