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