1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fixes for binary protocol (complement to last push)

Changed timestamp to return string in YYYY-MM-DD HH:MM:SS format.
DATE_ADD() and related functions now returns correct DATE/DATETIME type depending on argument types.
Now all tests passes, still some work left to remove warnings in log files from mysql-test-run
This commit is contained in:
monty@mashka.mysql.fi
2002-12-14 17:43:01 +02:00
parent a241d9a0f7
commit d49167bae5
42 changed files with 399 additions and 263 deletions

View File

@@ -1043,7 +1043,6 @@ int show_binlog_info(THD* thd)
DBUG_RETURN(-1);
protocol->prepare_for_resend();
if (mysql_bin_log.is_open())
{
LOG_INFO li;
@@ -1103,8 +1102,8 @@ int show_binlogs(THD* thd)
/* The file ends with EOF or empty line */
while ((length=my_b_gets(index_file, fname, sizeof(fname))) > 1)
{
protocol->prepare_for_resend();
int dir_len = dirname_length(fname);
packet->length(0);
/* The -1 is for removing newline from fname */
protocol->store(fname + dir_len, length-1-dir_len);
if (protocol->write())