diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-02-18 02:54:07 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-02-18 02:54:07 +0000 |
commit | 675a657be4ec6661476587a09b321cc350ac90b9 (patch) | |
tree | f59af2fb812ef862e58a2375dea82cf2bfb32b35 /databases/libgda3 | |
parent | Fix include path order so headers from a previously installed version (diff) |
Replace calls to atoll with strtoll which fixes MySQL and PostgreSQL database
connections.
Notes
Notes:
svn path=/head/; revision=75763
Diffstat (limited to 'databases/libgda3')
-rw-r--r-- | databases/libgda3/files/patch-providers_mysql_gda-mysql-recordset.c | 11 | ||||
-rw-r--r-- | databases/libgda3/files/patch-providers_postgres_utils.c | 11 |
2 files changed, 22 insertions, 0 deletions
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)); |