1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Fixed BUG#4487: Stored procedure connection aborted if uninitialized char.

This commit is contained in:
pem@mysql.comhem.se
2004-09-09 19:08:54 +02:00
parent e67fcee270
commit dde44b8c8c
3 changed files with 33 additions and 2 deletions

View File

@@ -1130,25 +1130,31 @@ public:
double val()
{
Item *it;
double d;
if (execute(&it))
{
null_value= 1;
return 0.0;
}
return it->val();
d= it->val();
null_value= it->null_value;
return d;
}
String *val_str(String *str)
{
Item *it;
String *s;
if (execute(&it))
{
null_value= 1;
return NULL;
}
return it->val_str(str);
s= it->val_str(str);
null_value= it->null_value;
return s;
}
void fix_length_and_dec();