Commit 788bc3f4 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi
Browse files

Fixed that LOAD DATA INFILE works with transactions.

Fix for lower case filenames
parent b0a0c542
Loading
Loading
Loading
Loading
+19 −8
Original line number Diff line number Diff line
@@ -3730,18 +3730,31 @@ list in this manual. @xref{TODO}.
@cindex sub-selects
The following will not yet work in MySQL:
MySQL currently only supports sub selects of the form @code{INSERT
... SELECT ...} and @code{REPLACE ... SELECT ...}. You can however use
the function @code{IN()} in other contexts.
In many cases you can rewrite the query without a sub-select:
@example
SELECT * FROM table1 WHERE id IN (SELECT id FROM table2);
@end example
This can be re-written as:
@example
SELECT table1.* FROM table1,table2 WHERE table1.id=table2.id;
@end example
The queries:
@example
SELECT * FROM table1 WHERE id NOT IN (SELECT id FROM table2);
SELECT * FROM table1 WHERE NOT EXISTS (SELECT id FROM table2 where table1.id=table2.id);
@end example
However, in many cases you can rewrite the query without a sub-select:
Can be rewritten as:
@example
SELECT table1.* FROM table1,table2 WHERE table1.id=table2.id;
SELECT table1.* FROM table1 LEFT JOIN table2 ON table1.id=table2.id where table2.id IS NULL
@end example
@@ -3777,11 +3790,9 @@ second instance of the interpreter:
prompt> mysql --skip-column-names mydb < myscript.sql | mysql mydb
@end example
MySQL only supports @code{INSERT ... SELECT ...} and
@code{REPLACE ... SELECT ...} Independent sub-selects will probably
be available in Version 4.0.  You can now use the function @code{IN()} in
other contexts, however.
MySQL 4.0 supports multi-table deletes that can be used to efficiently
delete rows based on information from one table or even from many tables
at the same time.
@node Missing SELECT INTO TABLE, Missing Transactions, Missing Sub-selects, Missing functions
@subsubsection @code{SELECT INTO TABLE}
+1 −0
Original line number Diff line number Diff line
@@ -291,6 +291,7 @@ __lock_init(dbenv, lt)
		    sizeof(struct __db_lock), MUTEX_ALIGN, &lp)) != 0)
			goto mem_err;
		lp->status = DB_LSTAT_FREE;
		lp->gen=0;
		if ((ret = __db_shmutex_init(dbenv, &lp->mutex,
		    R_OFFSET(&lt->reginfo, &lp->mutex) + DB_FCNTL_OFF_LOCK,
		    MUTEX_SELF_BLOCK, &lt->reginfo,

mysql-test/misc/select.tst

deleted100644 → 0
+0 −4015

File deleted.

Preview size limit exceeded, changes collapsed.

+6 −0
Original line number Diff line number Diff line
@@ -362,3 +362,9 @@ _userid
marc@anyware.co.uk
_userid
marc@anyware.co.uk
f1
65
379
468
469
508
+5 −0
Original line number Diff line number Diff line
65,-1,1
379,-1,1
468,-1,1
469,-1,1
508,-1,1  
Loading