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
cab074cb
Commit
cab074cb
authored
Feb 20, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
parents
2d819535
a799f2b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
mysql-test/t/mysql.test
mysql-test/t/mysql.test
+10
-4
mysys/mf_iocache.c
mysys/mf_iocache.c
+19
-15
No files found.
mysql-test/t/mysql.test
View file @
cab074cb
...
...
@@ -251,16 +251,22 @@ drop table t17583;
#
# This should work just fine...
--
exec
echo
"DELIMITER /"
>
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
--
exec
echo
"SELECT 1/"
>>
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
DELIMITER
/
SELECT
1
/
EOF
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
2
>&
1
# This should give an error...
--
exec
echo
"DELIMITER
\\
"
>
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
DELIMITER
\
EOF
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
2
>&
1
# As should this...
--
exec
echo
"DELIMITER
\\\\
"
>
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
DELIMITER
\\
EOF
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug21412
.
sql
2
>&
1
#
...
...
mysys/mf_iocache.c
View file @
cab074cb
...
...
@@ -170,24 +170,28 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
info
->
arg
=
0
;
info
->
alloced_buffer
=
0
;
info
->
buffer
=
0
;
info
->
seek_not_done
=
0
;
pos
=
my_tell
(
file
,
MYF
(
0
));
if
((
pos
==
(
my_off_t
)
-
1
)
&&
(
my_errno
==
ESPIPE
))
if
(
file
>=
0
)
{
/*
This kind of object doesn't support seek() or tell(). Don't set a flag
that will make us again try to seek() later and fail.
*/
info
->
seek_not_done
=
0
;
/*
Additionally, if we're supposed to start somewhere other than the
the beginning of whatever this file is, then somebody made a bad
assumption.
*/
DBUG_ASSERT
(
seek_offset
==
0
);
pos
=
my_tell
(
file
,
MYF
(
0
));
if
((
pos
==
(
my_off_t
)
-
1
)
&&
(
my_errno
==
ESPIPE
))
{
/*
This kind of object doesn't support seek() or tell(). Don't set a
flag that will make us again try to seek() later and fail.
*/
info
->
seek_not_done
=
0
;
/*
Additionally, if we're supposed to start somewhere other than the
the beginning of whatever this file is, then somebody made a bad
assumption.
*/
DBUG_ASSERT
(
seek_offset
==
0
);
}
else
info
->
seek_not_done
=
test
(
seek_offset
!=
pos
);
}
else
info
->
seek_not_done
=
test
(
file
>=
0
&&
seek_offset
!=
pos
);
info
->
disk_writes
=
0
;
#ifdef THREAD
...
...
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