Chris, Wednesday, November 27, 2002, 6:24:12 PM, you wrote: CB> I keep getting error 1100 (table [table name(s) was not locked with LOCK CB> TABLES) but I am definitely locking them with LOCK TABLES...
CB> here's examples of what i'm doing... CB> i have 2 tables i'm trying to work with...jobs and mechanics CB> i do CB> "lock tables jobs read" CB> everything seemed ok so then i do CB> "lock tables mechanics read" CB> again no errors so i guess it worked..now i'm expecting to have my 2 CB> tables locked for read only. Nope. Any LOCK TABLES releases any previous LOCK for the current thread. So, only table 'mechanics' is locked. CB> No I would try to query them with a JOIN but i keep getting the error so CB> I tried querying each table indiviually but i still get the error: CB> "select * from jobs,mechanics where jobs.mech_id=mechanics.mech_id and CB> status!='completed'" CB> error 1100 [skip] CB> does all this indicate a bug in MySQL or am i doing something stupid? What version of MySQL do you use? It works fine for me. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php