[Mono-bugs] [Bug 579292] Mono.Data.Sqlite (2.0) broken on OSX

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 19 11:56:12 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=579292

http://bugzilla.novell.com/show_bug.cgi?id=579292#c1


--- Comment #1 from Eric Butler <eric at extremeboredom.net> 2010-02-19 16:56:11 UTC ---
Looks like Mono.Data.Sqlite is just broken on OSX. Here's a quick test app:

// compile with:
// gmcs testsqlite.cs  -r:Mono.Data.Sqlite -r:System.Data
// (must use gmcs - The 1.0 Mono.Data.Sqlite DLL doesn't appear to crash)

using System;
using System.IO;
using System.Data;
using Mono.Data.Sqlite;

public class Test
{
  public static void Main ()
  {
    try {
      var connectionString = "URI=file:/tmp/test.db,version=3";
      using (var connection = new SqliteConnection(connectionString)) {
        connection.Open();
        var cmd = new SqliteCommand("CREATE TABLE test (id INTEGER)",
connection);
        cmd.ExecuteNonQuery();

        cmd = new SqliteCommand("INSERT INTO test (id) VALUES (1)",
connection);
        cmd.ExecuteNonQuery();

        cmd = new SqliteCommand("SELECT * FROM test", connection);
        var adapter = new SqliteDataAdapter(cmd);
        var ds = new DataSet();

        // Crash here
        // System.EntryPointNotFoundException: sqlite3_column_origin_name
        adapter.Fill(ds);
      }
    } finally {
      if (File.Exists("/tmp/test.db"))
        File.Delete("/tmp/test.db");
    }
  }
}

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list