Blob Blame History Raw
diff -up libgda-3.0.1/providers/mdb/gda-mdb-table.c~ libgda-3.0.1/providers/mdb/gda-mdb-table.c
--- libgda-3.0.1/providers/mdb/gda-mdb-table.c~	2007-08-16 13:36:34.000000000 +0200
+++ libgda-3.0.1/providers/mdb/gda-mdb-table.c	2007-08-16 13:36:34.000000000 +0200
@@ -23,6 +23,7 @@
 
 #include "gda-mdb-table.h"
 #include <libgda/gda-data-model-private.h>
+#include <libgda/gda-data-model-array.h>
 
 GdaDataModel *
 gda_mdb_table_new (GdaMdbConnection *mdb_cnc, const gchar *name)
@@ -40,7 +41,7 @@ gda_mdb_table_new (GdaMdbConnection *mdb
 	for (i = 0; i < mdb_cnc->mdb->num_catalog; i++) {
 		entry = g_ptr_array_index (mdb_cnc->mdb->catalog, i);
 		if (entry->object_type == MDB_TABLE
-		    && !strcmp (entry->object_type, name))
+		    && !strcmp (entry->object_name, name))
 			break;
 		else
 			entry = NULL;