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
fdd6daf4
Commit
fdd6daf4
authored
Oct 31, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#14139 - Merge to 5.0
parent
2f6bb04f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
mysql-test/r/create.result
mysql-test/r/create.result
+3
-1
mysql-test/t/create.test
mysql-test/t/create.test
+1
-0
sql/field.h
sql/field.h
+4
-1
sql/item.h
sql/item.h
+1
-0
No files found.
mysql-test/r/create.result
View file @
fdd6daf4
...
...
@@ -645,10 +645,12 @@ create table t1 (
a varchar(112) charset utf8 collate utf8_bin not null,
primary key (a)
) select 'test' as a ;
Warnings:
Warning 1364 Field 'a' doesn't have a default value
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` varchar(112) character set utf8 collate utf8_bin NOT NULL
default ''
,
`a` varchar(112) character set utf8 collate utf8_bin NOT NULL,
PRIMARY KEY (`a`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
mysql-test/t/create.test
View file @
fdd6daf4
...
...
@@ -550,6 +550,7 @@ create table t1 (
a
varchar
(
112
)
charset
utf8
collate
utf8_bin
not
null
,
primary
key
(
a
)
)
select
'test'
as
a
;
--
warning
1364
show
create
table
t1
;
drop
table
t1
;
...
...
sql/field.h
View file @
fdd6daf4
...
...
@@ -1373,7 +1373,10 @@ public:
max number of characters.
*/
ulong
length
;
ulong
length
;
/*
The value of 'length' before a call to create_length_to_internal_length
*/
uint32
chars_length
;
uint
decimals
,
flags
,
pack_length
,
key_length
;
Field
::
utype
unireg_check
;
TYPELIB
*
interval
;
// Which interval to use
...
...
sql/item.h
View file @
fdd6daf4
...
...
@@ -526,6 +526,7 @@ public:
double
val_real_from_decimal
();
virtual
Field
*
get_tmp_table_field
()
{
return
0
;
}
/* This is also used to create fields in CREATE ... SELECT: */
virtual
Field
*
tmp_table_field
(
TABLE
*
t_arg
)
{
return
0
;
}
virtual
const
char
*
full_name
()
const
{
return
name
?
name
:
"???"
;
}
...
...
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