Below is the list of changes that have just been committed into a local
5.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-02-20 13:06:25+01:00, msvensson@stripped +2 -0
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
MERGE: 1.1810.2372.112
mysql-test/t/mysql.test@stripped, 2007-02-20 13:06:23+01:00, msvensson@stripped +0 -0
Auto merged
MERGE: 1.4.10.3
mysys/mf_iocache.c@stripped, 2007-02-20 13:06:23+01:00, msvensson@stripped +0 -0
Auto merged
MERGE: 1.56.1.10
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: pilot.blaudden
# Root: /home/msvensson/mysql/mysql-5.1-new-maint/RESYNC
--- 1.67/mysys/mf_iocache.c 2007-02-13 23:21:46 +01:00
+++ 1.68/mysys/mf_iocache.c 2007-02-20 13:06:23 +01:00
@@ -170,24 +170,28 @@
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
--- 1.35/mysql-test/t/mysql.test 2007-02-16 16:13:54 +01:00
+++ 1.36/mysql-test/t/mysql.test 2007-02-20 13:06:23 +01:00
@@ -251,16 +251,22 @@
#
# 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
#
| Thread |
|---|
| • bk commit into 5.1 tree (msvensson:1.2451) | msvensson | 20 Feb |