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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7b2238d4
Commit
7b2238d4
authored
Jan 16, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
8238f355
72549b13
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 @
7b2238d4
...
@@ -586,6 +586,11 @@ DESC t2;
...
@@ -586,6 +586,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 @
7b2238d4
...
@@ -494,6 +494,13 @@ AS f2 FROM t1;
...
@@ -494,6 +494,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 @
7b2238d4
...
@@ -678,6 +678,7 @@ int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
...
@@ -678,6 +678,7 @@ int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
if
(
!
(
sql_field
->
flags
&
NOT_NULL_FLAG
))
if
(
!
(
sql_field
->
flags
&
NOT_NULL_FLAG
))
null_fields
--
;
null_fields
--
;
sql_field
->
flags
=
dup_field
->
flags
;
sql_field
->
flags
=
dup_field
->
flags
;
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