diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-08-15 00:44:24 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-08-15 00:44:24 +0800 |
commit | 8d5072b2dd205ca41c03c5348410eef369639599 (patch) | |
tree | 5bdecfd13ac45f77eb70968dc70091de29f1586a /databases | |
parent | 8a945f485d33524f905fa4b7b2657f1068765e89 (diff) | |
download | marcuscom-ports-8d5072b2dd205ca41c03c5348410eef369639599.tar marcuscom-ports-8d5072b2dd205ca41c03c5348410eef369639599.tar.gz marcuscom-ports-8d5072b2dd205ca41c03c5348410eef369639599.tar.bz2 marcuscom-ports-8d5072b2dd205ca41c03c5348410eef369639599.tar.lz marcuscom-ports-8d5072b2dd205ca41c03c5348410eef369639599.tar.xz marcuscom-ports-8d5072b2dd205ca41c03c5348410eef369639599.tar.zst marcuscom-ports-8d5072b2dd205ca41c03c5348410eef369639599.zip |
Fix a crash in the default XML provider when trying to get the list of
supported types.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2650 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'databases')
-rw-r--r-- | databases/libgda2/Makefile | 1 | ||||
-rw-r--r-- | databases/libgda2/files/patch-providers_xml_gda-xml-provider.c | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/databases/libgda2/Makefile b/databases/libgda2/Makefile index 3ca69ce6f..dc53b8788 100644 --- a/databases/libgda2/Makefile +++ b/databases/libgda2/Makefile @@ -7,6 +7,7 @@ PORTNAME= libgda2 PORTVERSION= 1.1.6 +PORTREVISION= 1 CATEGORIES= databases gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/1.1 diff --git a/databases/libgda2/files/patch-providers_xml_gda-xml-provider.c b/databases/libgda2/files/patch-providers_xml_gda-xml-provider.c new file mode 100644 index 000000000..d9de4d05d --- /dev/null +++ b/databases/libgda2/files/patch-providers_xml_gda-xml-provider.c @@ -0,0 +1,57 @@ +--- providers/xml/gda-xml-provider.c.orig Sat Aug 14 12:41:57 2004 ++++ providers/xml/gda-xml-provider.c Sat Aug 14 12:43:17 2004 +@@ -652,33 +652,32 @@ + /* create the recordset */ + recset = GDA_DATA_MODEL_ARRAY (gda_data_model_array_new (4)); + gda_data_model_set_column_title (GDA_DATA_MODEL (recset), 0, _("Type")); +- gda_data_model_set_column_title (GDA_DATA_MODEL (recset), 0, _("Type")); + gda_data_model_set_column_title (GDA_DATA_MODEL (recset), 1, _("Owner")); + gda_data_model_set_column_title (GDA_DATA_MODEL (recset), 2, _("Comments")); + gda_data_model_set_column_title (GDA_DATA_MODEL (recset), 3, _("GDA type")); + + /* fill the recordset */ +- add_type_row (recset, "bigint", NULL, _("Big integer"), GDA_VALUE_TYPE_BIGINT); +- add_type_row (recset, "biguint", NULL, _("Big unsigned integer"), GDA_VALUE_TYPE_BIGUINT); +- add_type_row (recset, "binary", NULL, _("Binary"), GDA_VALUE_TYPE_BINARY); +- add_type_row (recset, "boolean", NULL, _("Boolean"), GDA_VALUE_TYPE_BOOLEAN); +- add_type_row (recset, "date", NULL, _("Date"), GDA_VALUE_TYPE_DATE); +- add_type_row (recset, "double", NULL, _("Double precision"), GDA_VALUE_TYPE_DOUBLE); +- add_type_row (recset, "integer", NULL, _("Integer"), GDA_VALUE_TYPE_INTEGER); +- add_type_row (recset, "list", NULL, _("List"), GDA_VALUE_TYPE_LIST); +- add_type_row (recset, "money", NULL, _("Money"), GDA_VALUE_TYPE_MONEY); +- add_type_row (recset, "numeric", NULL, _("Numeric"), GDA_VALUE_TYPE_NUMERIC); +- add_type_row (recset, "point", NULL, _("Point"), GDA_VALUE_TYPE_GEOMETRIC_POINT); +- add_type_row (recset, "single", NULL, _("Single precision"), GDA_VALUE_TYPE_SINGLE); +- add_type_row (recset, "smallint", NULL, _("Small integer"), GDA_VALUE_TYPE_SMALLINT); +- add_type_row (recset, "smalluint", NULL, _("Small unsigned integer"), GDA_VALUE_TYPE_SMALLUINT); +- add_type_row (recset, "string", NULL, _("String"), GDA_VALUE_TYPE_STRING); +- add_type_row (recset, "time", NULL, _("Time"), GDA_VALUE_TYPE_TIME); +- add_type_row (recset, "timestamp", NULL, _("Timestamp"), GDA_VALUE_TYPE_TIMESTAMP); +- add_type_row (recset, "tinyint", NULL, _("Tiny integer"), GDA_VALUE_TYPE_TINYINT); +- add_type_row (recset, "tinyuint", NULL, _("Tiny unsigned integer"), GDA_VALUE_TYPE_TINYUINT); +- add_type_row (recset, "type", NULL, _("Type"), GDA_VALUE_TYPE_TYPE); +- add_type_row (recset, "uinteger", NULL, _("Unsigned integer"), GDA_VALUE_TYPE_UINTEGER); ++ add_type_row (recset, "bigint", "", _("Big integer"), GDA_VALUE_TYPE_BIGINT); ++ add_type_row (recset, "biguint", "", _("Big unsigned integer"), GDA_VALUE_TYPE_BIGUINT); ++ add_type_row (recset, "binary", "", _("Binary"), GDA_VALUE_TYPE_BINARY); ++ add_type_row (recset, "boolean", "", _("Boolean"), GDA_VALUE_TYPE_BOOLEAN); ++ add_type_row (recset, "date", "", _("Date"), GDA_VALUE_TYPE_DATE); ++ add_type_row (recset, "double", "", _("Double precision"), GDA_VALUE_TYPE_DOUBLE); ++ add_type_row (recset, "integer", "", _("Integer"), GDA_VALUE_TYPE_INTEGER); ++ add_type_row (recset, "list", "", _("List"), GDA_VALUE_TYPE_LIST); ++ add_type_row (recset, "money", "", _("Money"), GDA_VALUE_TYPE_MONEY); ++ add_type_row (recset, "numeric", "", _("Numeric"), GDA_VALUE_TYPE_NUMERIC); ++ add_type_row (recset, "point", "", _("Point"), GDA_VALUE_TYPE_GEOMETRIC_POINT); ++ add_type_row (recset, "single", "", _("Single precision"), GDA_VALUE_TYPE_SINGLE); ++ add_type_row (recset, "smallint", "", _("Small integer"), GDA_VALUE_TYPE_SMALLINT); ++ add_type_row (recset, "smalluint", "", _("Small unsigned integer"), GDA_VALUE_TYPE_SMALLUINT); ++ add_type_row (recset, "string", "", _("String"), GDA_VALUE_TYPE_STRING); ++ add_type_row (recset, "time", "", _("Time"), GDA_VALUE_TYPE_TIME); ++ add_type_row (recset, "timestamp", "", _("Timestamp"), GDA_VALUE_TYPE_TIMESTAMP); ++ add_type_row (recset, "tinyint", "", _("Tiny integer"), GDA_VALUE_TYPE_TINYINT); ++ add_type_row (recset, "tinyuint", "", _("Tiny unsigned integer"), GDA_VALUE_TYPE_TINYUINT); ++ add_type_row (recset, "type", "", _("Type"), GDA_VALUE_TYPE_TYPE); ++ add_type_row (recset, "uinteger", "", _("Unsigned integer"), GDA_VALUE_TYPE_UINTEGER); + + return GDA_DATA_MODEL (recset); + } |