diff options
author | marcus <marcus@FreeBSD.org> | 2003-02-18 10:54:07 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-02-18 10:54:07 +0800 |
commit | 317f56047af60177d17c7e7bd442b5b955475378 (patch) | |
tree | 9c1086ccbd8752142f2d9f85453c716ee1c7e094 /databases/libgda3 | |
parent | 4eb413cbce175f43acb9143da352d2204c9ee840 (diff) | |
download | freebsd-ports-gnome-317f56047af60177d17c7e7bd442b5b955475378.tar.gz freebsd-ports-gnome-317f56047af60177d17c7e7bd442b5b955475378.tar.zst freebsd-ports-gnome-317f56047af60177d17c7e7bd442b5b955475378.zip |
Replace calls to atoll with strtoll which fixes MySQL and PostgreSQL database
connections.
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)); |