1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

sql_udf.cc, protocol.cc:

Less default_charset_info
This commit is contained in:
bar@bar.mysql.r18.ru
2003-02-26 14:08:31 +04:00
parent e3579917da
commit 4e1cc32318
2 changed files with 5 additions and 5 deletions

View File

@@ -431,9 +431,9 @@ int mysql_create_function(THD *thd,udf_func *udf)
goto err;
restore_record(table,2); // Get default values for fields
table->field[0]->store(u_d->name.str, u_d->name.length, default_charset_info);
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[2]->store(u_d->dl,(uint) strlen(u_d->dl), default_charset_info);
table->field[2]->store(u_d->dl,(uint) strlen(u_d->dl), system_charset_info);
if (table->fields >= 4) // If not old func format
table->field[3]->store((longlong) u_d->type);
error = table->file->write_row(table->record[0]);