diff options
author | unknown <ramil@mysql.com> | 2006-01-26 13:15:47 +0400 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2006-01-26 13:15:47 +0400 |
commit | 27c25d38ef9fc69e6cc068b513d98d9864aada55 (patch) | |
tree | 307f1688e69caac16388605421bd5c590b7d07f9 /sql/sql_prepare.cc | |
parent | e43170419c97f5432e90016bc89e0910f39f1487 (diff) | |
download | mariadb-git-27c25d38ef9fc69e6cc068b513d98d9864aada55.tar.gz |
Fix for bug #16511: Decimal data types broken with prepared statements.
sql/sql_prepare.cc:
Fix for bug #16511: Decimal data types broken with prepared statements.
- should add the real length.
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 68f033f78fe..098608ee43f 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -405,7 +405,7 @@ static void set_param_decimal(Item_param *param, uchar **pos, ulong len) { ulong length= get_param_length(pos, len); param->set_decimal((char*)*pos, length); - *pos+= len; + *pos+= length; } #ifndef EMBEDDED_LIBRARY |