mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added option --valgrind-mysqltest to mysql-test-run
Added flag to Field::store(longlong) to specify if value is unsigned. This fixes bug #12750: Incorrect storage of 9999999999999999999 in DECIMAL(19, 0) Fixed warning from valgrind in CREATE ... SELECT Fixed double free of mysql.options if reconnect failed
This commit is contained in:
@ -472,10 +472,10 @@ int mysql_create_function(THD *thd,udf_func *udf)
|
||||
|
||||
restore_record(table, s->default_values); // Default values for fields
|
||||
table->field[0]->store(u_d->name.str, u_d->name.length, system_charset_info);
|
||||
table->field[1]->store((longlong) u_d->returns);
|
||||
table->field[1]->store((longlong) u_d->returns, TRUE);
|
||||
table->field[2]->store(u_d->dl,(uint) strlen(u_d->dl), system_charset_info);
|
||||
if (table->s->fields >= 4) // If not old func format
|
||||
table->field[3]->store((longlong) u_d->type);
|
||||
table->field[3]->store((longlong) u_d->type, TRUE);
|
||||
error = table->file->write_row(table->record[0]);
|
||||
|
||||
close_thread_tables(thd);
|
||||
|
Reference in New Issue
Block a user