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
b9cfd031
Commit
b9cfd031
authored
Jul 15, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/usr/home/ram/work/mysql-5.0
parents
b3a424f6
012e9db0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
mysql-test/r/strict.result
mysql-test/r/strict.result
+10
-0
mysql-test/t/strict.test
mysql-test/t/strict.test
+10
-0
sql/field.cc
sql/field.cc
+2
-1
No files found.
mysql-test/r/strict.result
View file @
b9cfd031
...
...
@@ -1235,3 +1235,13 @@ create table t1(a varchar(65537));
ERROR 42000: Column length too big for column 'a' (max = 65535); use BLOB or TEXT instead
create table t1(a varbinary(65537));
ERROR 42000: Column length too big for column 'a' (max = 65535); use BLOB or TEXT instead
set @@sql_mode='traditional';
create table t1(a int, b date not null);
alter table t1 modify a bigint unsigned not null;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` bigint(20) unsigned NOT NULL,
`b` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
mysql-test/t/strict.test
View file @
b9cfd031
...
...
@@ -1093,3 +1093,13 @@ set @@sql_mode='traditional';
create
table
t1
(
a
varchar
(
65537
));
--
error
1074
create
table
t1
(
a
varbinary
(
65537
));
#
# Bug #9881: problem with altering table
#
set
@@
sql_mode
=
'traditional'
;
create
table
t1
(
a
int
,
b
date
not
null
);
alter
table
t1
modify
a
bigint
unsigned
not
null
;
show
create
table
t1
;
drop
table
t1
;
sql/field.cc
View file @
b9cfd031
...
...
@@ -8487,7 +8487,8 @@ create_field::create_field(Field *old_field,Field *orig_field)
else
interval
=
0
;
def
=
0
;
if
(
!
old_field
->
is_real_null
()
&&
!
(
flags
&
BLOB_FLAG
)
&&
if
(
!
(
flags
&
(
NO_DEFAULT_VALUE_FLAG
|
BLOB_FLAG
))
&&
!
old_field
->
is_real_null
()
&&
old_field
->
ptr
&&
orig_field
)
{
char
buff
[
MAX_FIELD_WIDTH
],
*
pos
;
...
...
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