mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
manual merge of bug fix#12537
sql/item.cc: Auto merged sql/sql_select.cc: manual merge
This commit is contained in:
@ -580,6 +580,13 @@ ERROR 42000: Incorrect database name 'xyz'
|
||||
create table t1(t1.name int);
|
||||
create table t2(test.t2.name int);
|
||||
drop table t1,t2;
|
||||
CREATE TABLE t1 (f1 VARCHAR(255) CHARACTER SET utf8);
|
||||
CREATE TABLE t2 AS SELECT LEFT(f1,86) AS f2 FROM t1 UNION SELECT LEFT(f1,86)
|
||||
AS f2 FROM t1;
|
||||
DESC t2;
|
||||
Field Type Null Key Default Extra
|
||||
f2 varchar(86) YES NULL
|
||||
DROP TABLE t1,t2;
|
||||
create database mysqltest;
|
||||
use mysqltest;
|
||||
drop database mysqltest;
|
||||
|
@ -492,6 +492,15 @@ create table t1(t1.name int);
|
||||
create table t2(test.t2.name int);
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# Bug #12537: UNION produces longtext instead of varchar
|
||||
#
|
||||
CREATE TABLE t1 (f1 VARCHAR(255) CHARACTER SET utf8);
|
||||
CREATE TABLE t2 AS SELECT LEFT(f1,86) AS f2 FROM t1 UNION SELECT LEFT(f1,86)
|
||||
AS f2 FROM t1;
|
||||
DESC t2;
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
#
|
||||
# Bug#11028: Crash on create table like
|
||||
#
|
||||
|
Reference in New Issue
Block a user