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
1a9c96c5
Commit
1a9c96c5
authored
Feb 14, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change from std_data to std_data_ln
parent
3c9952a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/r/ndb_load.result
mysql-test/r/ndb_load.result
+2
-2
mysql-test/t/ndb_load.test
mysql-test/t/ndb_load.test
+2
-2
No files found.
mysql-test/r/ndb_load.result
View file @
1a9c96c5
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (word CHAR(20) NOT NULL PRIMARY KEY) ENGINE=NDB;
CREATE TABLE t1 (word CHAR(20) NOT NULL PRIMARY KEY) ENGINE=NDB;
LOAD DATA INFILE '../
../std_data
/words.dat' INTO TABLE t1 ;
LOAD DATA INFILE '../
std_data_ln
/words.dat' INTO TABLE t1 ;
ERROR 23000: Can't write; duplicate key in table 't1'
ERROR 23000: Can't write; duplicate key in table 't1'
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (word CHAR(20) NOT NULL) ENGINE=NDB;
CREATE TABLE t1 (word CHAR(20) NOT NULL) ENGINE=NDB;
LOAD DATA INFILE '../
../std_data
/words.dat' INTO TABLE t1 ;
LOAD DATA INFILE '../
std_data_ln
/words.dat' INTO TABLE t1 ;
SELECT * FROM t1 ORDER BY word;
SELECT * FROM t1 ORDER BY word;
word
word
Aarhus
Aarhus
...
...
mysql-test/t/ndb_load.test
View file @
1a9c96c5
...
@@ -12,12 +12,12 @@ DROP TABLE IF EXISTS t1;
...
@@ -12,12 +12,12 @@ DROP TABLE IF EXISTS t1;
# should give duplicate key
# should give duplicate key
CREATE
TABLE
t1
(
word
CHAR
(
20
)
NOT
NULL
PRIMARY
KEY
)
ENGINE
=
NDB
;
CREATE
TABLE
t1
(
word
CHAR
(
20
)
NOT
NULL
PRIMARY
KEY
)
ENGINE
=
NDB
;
--
error
1022
--
error
1022
LOAD
DATA
INFILE
'../
../std_data
/words.dat'
INTO
TABLE
t1
;
LOAD
DATA
INFILE
'../
std_data_ln
/words.dat'
INTO
TABLE
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
# now without a primary key we should be ok
# now without a primary key we should be ok
CREATE
TABLE
t1
(
word
CHAR
(
20
)
NOT
NULL
)
ENGINE
=
NDB
;
CREATE
TABLE
t1
(
word
CHAR
(
20
)
NOT
NULL
)
ENGINE
=
NDB
;
LOAD
DATA
INFILE
'../
../std_data
/words.dat'
INTO
TABLE
t1
;
LOAD
DATA
INFILE
'../
std_data_ln
/words.dat'
INTO
TABLE
t1
;
SELECT
*
FROM
t1
ORDER
BY
word
;
SELECT
*
FROM
t1
ORDER
BY
word
;
DROP
TABLE
t1
;
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