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
c81862cc
Commit
c81862cc
authored
Jan 28, 2006
by
joerg@debian.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
a643ba46
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 @
c81862cc
...
@@ -603,6 +603,11 @@ DESC t2;
...
@@ -603,6 +603,11 @@ DESC t2;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
f2 varchar(171) YES NULL
f2 varchar(171) 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 @
c81862cc
...
@@ -505,6 +505,13 @@ CREATE TABLE t2 AS SELECT LEFT(f1,171) AS f2 FROM t1 UNION SELECT LEFT(f1,171) A
...
@@ -505,6 +505,13 @@ CREATE TABLE t2 AS SELECT LEFT(f1,171) AS f2 FROM t1 UNION SELECT LEFT(f1,171) A
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 @
c81862cc
...
@@ -1325,6 +1325,7 @@ static int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
...
@@ -1325,6 +1325,7 @@ static 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