diff options
author | konstantin@mysql.com <> | 2004-06-22 23:07:08 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2004-06-22 23:07:08 +0400 |
commit | b81315d6e82dc56e2b94ee139f738c1092b81f1f (patch) | |
tree | a14021a16f8e7514a1a371e60c4f95c8d74ea50e /libmysql/libmysql.c | |
parent | b20dca925d703e12ad1e8ec50e7a4272ad7a07c8 (diff) | |
download | mariadb-git-b81315d6e82dc56e2b94ee139f738c1092b81f1f.tar.gz |
Fixes to make client_test run on 64 bit Sun: a bug in libmysql and
test suite fixed.
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r-- | libmysql/libmysql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index d1e92f5d91f..d29a7deb69e 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -3245,32 +3245,32 @@ static void send_data_str(MYSQL_BIND *param, char *value, uint length) { short data= (short)my_strntol(&my_charset_latin1,value,length,10,NULL, &err); - int2store(buffer, data); + shortstore(buffer, data); break; } case MYSQL_TYPE_LONG: { int32 data= (int32)my_strntol(&my_charset_latin1,value,length,10,NULL, &err); - int4store(buffer, data); + longstore(buffer, data); break; } case MYSQL_TYPE_LONGLONG: { longlong data= my_strntoll(&my_charset_latin1,value,length,10,NULL,&err); - int8store(buffer, data); + longlongstore(buffer, data); break; } case MYSQL_TYPE_FLOAT: { float data = (float)my_strntod(&my_charset_latin1,value,length,NULL,&err); - float4store(buffer, data); + floatstore(buffer, data); break; } case MYSQL_TYPE_DOUBLE: { double data= my_strntod(&my_charset_latin1,value,length,NULL,&err); - float8store(buffer, data); + doublestore(buffer, data); break; } case MYSQL_TYPE_TINY_BLOB: |