Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
72549b13
Commit
72549b13
authored
Sep 20, 2005
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Plain Diff
Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-4.1
into lmy004.:/work/mysql-4.1-bug12913
parents
9fe540fa
f75ac7fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
mysql-test/r/create.result
mysql-test/r/create.result
+5
-0
mysql-test/t/create.test
mysql-test/t/create.test
+7
-0
sql/sql_table.cc
sql/sql_table.cc
+1
-0
No files found.
mysql-test/r/create.result
View file @
72549b13
...
@@ -601,6 +601,11 @@ DESC t2;
...
@@ -601,6 +601,11 @@ DESC t2;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
f2 varchar(86) YES NULL
f2 varchar(86) YES NULL
DROP TABLE t1,t2;
DROP TABLE t1,t2;
CREATE TABLE t12913 (f1 ENUM ('a','b')) AS SELECT 'a' AS f1;
SELECT * FROM t12913;
f1
a
DROP TABLE t12913;
create database mysqltest;
create database mysqltest;
use mysqltest;
use mysqltest;
drop database mysqltest;
drop database mysqltest;
...
...
mysql-test/t/create.test
View file @
72549b13
...
@@ -501,6 +501,13 @@ AS f2 FROM t1;
...
@@ -501,6 +501,13 @@ AS f2 FROM t1;
DESC
t2
;
DESC
t2
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
#
# Bug#12913 Simple SQL can crash server or connection
#
CREATE
TABLE
t12913
(
f1
ENUM
(
'a'
,
'b'
))
AS
SELECT
'a'
AS
f1
;
SELECT
*
FROM
t12913
;
DROP
TABLE
t12913
;
#
#
# Bug#11028: Crash on create table like
# Bug#11028: Crash on create table like
#
#
...
...
sql/sql_table.cc
View file @
72549b13
...
@@ -649,6 +649,7 @@ int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
...
@@ -649,6 +649,7 @@ int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
sql_field
->
decimals
=
dup_field
->
decimals
;
sql_field
->
decimals
=
dup_field
->
decimals
;
sql_field
->
flags
=
dup_field
->
flags
;
sql_field
->
flags
=
dup_field
->
flags
;
sql_field
->
unireg_check
=
dup_field
->
unireg_check
;
sql_field
->
unireg_check
=
dup_field
->
unireg_check
;
sql_field
->
interval
=
dup_field
->
interval
;
it2
.
remove
();
// Remove first (create) definition
it2
.
remove
();
// Remove first (create) definition
select_field_pos
--
;
select_field_pos
--
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment