diff options
Diffstat (limited to 'databases')
4 files changed, 44 insertions, 0 deletions
diff --git a/databases/libgda2/files/patch-providers_mysql_gda-mysql-recordset.c b/databases/libgda2/files/patch-providers_mysql_gda-mysql-recordset.c new file mode 100644 index 000000000000..758d31ca4869 --- /dev/null +++ b/databases/libgda2/files/patch-providers_mysql_gda-mysql-recordset.c @@ -0,0 +1,11 @@ +--- providers/mysql/gda-mysql-recordset.c.orig Mon Feb 17 21:42:16 2003 ++++ providers/mysql/gda-mysql-recordset.c Mon Feb 17 21:42:57 2003 +@@ -102,7 +102,7 @@ + break; + case FIELD_TYPE_LONGLONG : + case FIELD_TYPE_INT24 : +- gda_value_set_bigint (field, thevalue ? atoll (thevalue) : 0); ++ gda_value_set_bigint (field, thevalue ? strtoll(thevalue, &thevalue, 10) : 0); + break; + case FIELD_TYPE_SHORT : + gda_value_set_smallint (field, thevalue ? atoi (thevalue) : 0); diff --git a/databases/libgda2/files/patch-providers_postgres_utils.c b/databases/libgda2/files/patch-providers_postgres_utils.c new file mode 100644 index 000000000000..29fe99b985b9 --- /dev/null +++ b/databases/libgda2/files/patch-providers_postgres_utils.c @@ -0,0 +1,11 @@ +--- providers/postgres/utils.c.orig Mon Feb 17 21:43:51 2003 ++++ providers/postgres/utils.c Mon Feb 17 21:44:12 2003 +@@ -156,7 +156,7 @@ + gda_value_set_string (value, thevalue); + break; + case GDA_VALUE_TYPE_BIGINT : +- gda_value_set_bigint (value, atoll (thevalue)); ++ gda_value_set_bigint (value, strtoll(thevalue, &thevalue, 10)); + break; + case GDA_VALUE_TYPE_INTEGER : + gda_value_set_integer (value, atol (thevalue)); diff --git a/databases/libgda3/files/patch-providers_mysql_gda-mysql-recordset.c b/databases/libgda3/files/patch-providers_mysql_gda-mysql-recordset.c new file mode 100644 index 000000000000..758d31ca4869 --- /dev/null +++ b/databases/libgda3/files/patch-providers_mysql_gda-mysql-recordset.c @@ -0,0 +1,11 @@ +--- providers/mysql/gda-mysql-recordset.c.orig Mon Feb 17 21:42:16 2003 ++++ providers/mysql/gda-mysql-recordset.c Mon Feb 17 21:42:57 2003 +@@ -102,7 +102,7 @@ + break; + case FIELD_TYPE_LONGLONG : + case FIELD_TYPE_INT24 : +- gda_value_set_bigint (field, thevalue ? atoll (thevalue) : 0); ++ gda_value_set_bigint (field, thevalue ? strtoll(thevalue, &thevalue, 10) : 0); + break; + case FIELD_TYPE_SHORT : + gda_value_set_smallint (field, thevalue ? atoi (thevalue) : 0); diff --git a/databases/libgda3/files/patch-providers_postgres_utils.c b/databases/libgda3/files/patch-providers_postgres_utils.c new file mode 100644 index 000000000000..29fe99b985b9 --- /dev/null +++ b/databases/libgda3/files/patch-providers_postgres_utils.c @@ -0,0 +1,11 @@ +--- providers/postgres/utils.c.orig Mon Feb 17 21:43:51 2003 ++++ providers/postgres/utils.c Mon Feb 17 21:44:12 2003 +@@ -156,7 +156,7 @@ + gda_value_set_string (value, thevalue); + break; + case GDA_VALUE_TYPE_BIGINT : +- gda_value_set_bigint (value, atoll (thevalue)); ++ gda_value_set_bigint (value, strtoll(thevalue, &thevalue, 10)); + break; + case GDA_VALUE_TYPE_INTEGER : + gda_value_set_integer (value, atol (thevalue)); |