summaryrefslogtreecommitdiff
path: root/mysql-test/std_data
diff options
context:
space:
mode:
authorkostja@bodhi.local <>2006-08-30 00:38:58 +0400
committerkostja@bodhi.local <>2006-08-30 00:38:58 +0400
commit3bf609b7f2b73555b1e241dc7c354818b0bbbc5a (patch)
treecdfe8a72e8e640072c7742e9aa8836f40a34ab72 /mysql-test/std_data
parentcb4ea78cbdd1d64447b2879a8c8d968f3eb0aaa9 (diff)
downloadmariadb-git-3bf609b7f2b73555b1e241dc7c354818b0bbbc5a.tar.gz
A fix for Bug#14897 "ResultSet.getString("table.column") sometimes
doesn't find the column" When a user was using 4.1 tables with VARCHAR column and 5.0 server and a query that used a temporary table to resolve itself, the table metadata for the varchar column sent to client was incorrect: MYSQL_FIELD::table member was empty. The bug was caused by implicit "upgrade" from old VARCHAR to new VARCHAR hard-coded in Field::new_field, which did not preserve the information about the original table. Thus, the field metadata of the "upgraded" field pointed to an auxiliary temporary table created for query execution. The fix is to copy the pointer to the original table to the new field.
Diffstat (limited to 'mysql-test/std_data')
-rw-r--r--mysql-test/std_data/14897.frmbin0 -> 8608 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/mysql-test/std_data/14897.frm b/mysql-test/std_data/14897.frm
new file mode 100644
index 00000000000..aff11b467b0
--- /dev/null
+++ b/mysql-test/std_data/14897.frm
Binary files differ