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
dd0c7fac
Commit
dd0c7fac
authored
Jul 19, 2004
by
magnus@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new test/result file ndb_types to test creating tables with different column types in NDB
parent
e8d0f26a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
0 deletions
+83
-0
mysql-test/r/ndb_types.result
mysql-test/r/ndb_types.result
+36
-0
mysql-test/t/ndb_types.test
mysql-test/t/ndb_types.test
+47
-0
No files found.
mysql-test/r/ndb_types.result
0 → 100644
View file @
dd0c7fac
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
auto int(5) unsigned NOT NULL auto_increment,
string char(10) default "hello",
tiny tinyint(4) DEFAULT '0' NOT NULL ,
short smallint(6) DEFAULT '1' NOT NULL ,
medium mediumint(8) DEFAULT '0' NOT NULL,
long_int int(11) DEFAULT '0' NOT NULL,
longlong bigint(13) DEFAULT '0' NOT NULL,
real_float float(13,1) DEFAULT 0.0 NOT NULL,
real_double double(16,4),
utiny tinyint(3) unsigned DEFAULT '0' NOT NULL,
ushort smallint(5) unsigned zerofill DEFAULT '00000' NOT NULL,
umedium mediumint(8) unsigned DEFAULT '0' NOT NULL,
ulong int(11) unsigned DEFAULT '0' NOT NULL,
ulonglong bigint(13) unsigned DEFAULT '0' NOT NULL,
time_stamp timestamp,
date_field date,
time_field time,
date_time datetime,
options enum('one','two','tree') not null,
flags set('one','two','tree') not null,
PRIMARY KEY (auto),
KEY (utiny),
KEY (tiny),
KEY (short),
KEY any_name (medium),
KEY (longlong),
KEY (real_float),
KEY (ushort),
KEY (umedium),
KEY (ulong),
KEY (ulonglong,ulong),
KEY (options,flags)
);
drop table t1;
mysql-test/t/ndb_types.test
0 → 100644
View file @
dd0c7fac
--
source
include
/
have_ndb
.
inc
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
#
# Test creation of different column types in NDB
#
CREATE
TABLE
t1
(
auto
int
(
5
)
unsigned
NOT
NULL
auto_increment
,
string
char
(
10
)
default
"hello"
,
tiny
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
short
smallint
(
6
)
DEFAULT
'1'
NOT
NULL
,
medium
mediumint
(
8
)
DEFAULT
'0'
NOT
NULL
,
long_int
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
longlong
bigint
(
13
)
DEFAULT
'0'
NOT
NULL
,
real_float
float
(
13
,
1
)
DEFAULT
0.0
NOT
NULL
,
real_double
double
(
16
,
4
),
utiny
tinyint
(
3
)
unsigned
DEFAULT
'0'
NOT
NULL
,
ushort
smallint
(
5
)
unsigned
zerofill
DEFAULT
'00000'
NOT
NULL
,
umedium
mediumint
(
8
)
unsigned
DEFAULT
'0'
NOT
NULL
,
ulong
int
(
11
)
unsigned
DEFAULT
'0'
NOT
NULL
,
ulonglong
bigint
(
13
)
unsigned
DEFAULT
'0'
NOT
NULL
,
time_stamp
timestamp
,
date_field
date
,
time_field
time
,
date_time
datetime
,
options
enum
(
'one'
,
'two'
,
'tree'
)
not
null
,
flags
set
(
'one'
,
'two'
,
'tree'
)
not
null
,
PRIMARY
KEY
(
auto
),
KEY
(
utiny
),
KEY
(
tiny
),
KEY
(
short
),
KEY
any_name
(
medium
),
KEY
(
longlong
),
KEY
(
real_float
),
KEY
(
ushort
),
KEY
(
umedium
),
KEY
(
ulong
),
KEY
(
ulonglong
,
ulong
),
KEY
(
options
,
flags
)
);
drop
table
t1
;
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