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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user