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
b6e5c23c
Commit
b6e5c23c
authored
Mar 20, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that we use unix file format (no \r\n) for all new files
Portability fixes
parent
82c79134
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
13 deletions
+25
-13
BitKeeper/etc/config
BitKeeper/etc/config
+1
-0
client/mysqltest.c
client/mysqltest.c
+7
-8
mysql-test/r/derived.result
mysql-test/r/derived.result
+2
-2
mysql-test/r/rpl000009.result
mysql-test/r/rpl000009.result
+12
-0
mysql-test/t/derived.test
mysql-test/t/derived.test
+1
-1
mysql-test/t/rpl000009.test
mysql-test/t/rpl000009.test
+2
-2
No files found.
BitKeeper/etc/config
View file @
b6e5c23c
...
...
@@ -71,3 +71,4 @@ hours:
[arjen:]checkout:get
[nick:]checkout:get
checkout:edit
eoln:unix
client/mysqltest.c
View file @
b6e5c23c
...
...
@@ -1662,16 +1662,16 @@ int do_while(struct st_query* q)
happen for any tests in the test suite.
*/
char
my_getc
(
FILE
*
file
)
int
my_getc
(
FILE
*
file
)
{
if
(
line_buffer_pos
==
line_buffer
)
return
fgetc
(
file
);
return
line_buffer
[
--
line_buffer_pos
]
;
return
*--
line_buffer_pos
;
}
void
my_ungetc
(
int
c
)
{
line_buffer
[
line_buffer_pos
++
]
=
c
;
*
line_buffer_pos
++=
(
char
)
c
;
}
...
...
@@ -1692,8 +1692,9 @@ my_bool end_of_query(int c)
return
1
;
/* Found delimiter */
/* didn't find delimiter, push back things that we read */
for
(
j
=
1
;
j
<=
i
;
j
++
)
my_ungetc
(
tmp
[
j
]);
my_ungetc
(
c
);
while
(
i
>
1
)
my_ungetc
(
tmp
[
--
i
]);
return
0
;
}
...
...
@@ -2396,9 +2397,6 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
}
}
if
(
glob_replace
)
free_replace
();
if
(
record
)
{
if
(
!
q
->
record_file
[
0
]
&&
!
result_file
)
...
...
@@ -2419,6 +2417,7 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
mysql_error
(
mysql
);
end:
free_replace
();
last_result
=
0
;
if
(
ds
==
&
ds_tmp
)
dynstr_free
(
&
ds_tmp
);
...
...
mysql-test/r/derived.result
View file @
b6e5c23c
...
...
@@ -271,8 +271,8 @@ delete P1.* from `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Cou
select * from t1;
N M
3 0
delete P1.*,
P2.* from `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P
2.N;
ERROR HY000: The target table
P
2 of the DELETE is not updatable
delete P1.*,
p2.* from `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS p2 ON P1.N = p
2.N;
ERROR HY000: The target table
p
2 of the DELETE is not updatable
delete P1.* from `t1` AS P1 INNER JOIN (SELECT aaa FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N;
ERROR 42S22: Unknown column 'aaa' in 'field list'
drop table t1;
...
...
mysql-test/r/rpl000009.result
View file @
b6e5c23c
...
...
@@ -112,6 +112,18 @@ n s
2 two test
3 three test
4 four test
stop slave;
reset slave;
load data from master;
start slave;
insert into mysqltest.t1 values (5, 'five bar');
select * from mysqltest.t1;
n s
1 one test
2 two test
3 three test
4 four test
5 five bar
load table mysqltest.t1 from master;
ERROR 42S01: Table 't1' already exists
drop table mysqltest.t1;
...
...
mysql-test/t/derived.test
View file @
b6e5c23c
...
...
@@ -157,8 +157,8 @@ UPDATE `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1)
UPDATE
`t1`
AS
P1
INNER
JOIN
(
SELECT
aaaa
FROM
`t1`
GROUP
BY
N
HAVING
Count
(
M
)
>
1
)
AS
P2
ON
P1
.
N
=
P2
.
N
SET
P1
.
M
=
2
;
delete
P1
.*
from
`t1`
AS
P1
INNER
JOIN
(
SELECT
N
FROM
`t1`
GROUP
BY
N
HAVING
Count
(
M
)
>
1
)
AS
P2
ON
P1
.
N
=
P2
.
N
;
select
*
from
t1
;
--
error
1288
--
replace_result
P2
p2
--
error
1288
delete
P1
.*
,
P2
.*
from
`t1`
AS
P1
INNER
JOIN
(
SELECT
N
FROM
`t1`
GROUP
BY
N
HAVING
Count
(
M
)
>
1
)
AS
P2
ON
P1
.
N
=
P2
.
N
;
--
error
1054
delete
P1
.*
from
`t1`
AS
P1
INNER
JOIN
(
SELECT
aaa
FROM
`t1`
GROUP
BY
N
HAVING
Count
(
M
)
>
1
)
AS
P2
ON
P1
.
N
=
P2
.
N
;
...
...
mysql-test/t/rpl000009.test
View file @
b6e5c23c
...
...
@@ -127,11 +127,11 @@ load data from master;
start
slave
;
# see if replication coordinates were restored fine
connection
master
;
insert
into
bar
.
t1
values
(
5
,
'five bar'
);
insert
into
mysqltest
.
t1
values
(
5
,
'five bar'
);
save_master_pos
;
connection
slave
;
sync_with_master
;
select
*
from
bar
.
t1
;
select
*
from
mysqltest
.
t1
;
# Check that LOAD DATA FROM MASTER reports the error if it can't drop a
# table to be overwritten.
...
...
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