RE: mysql old 4.* query fails on 5.*

2007-06-02 Thread Geoffroy Cogniaux
mysql@lists.mysql.com Objet : Re: mysql old 4.* query fails on 5.* > Anyone know whats wrong here? Try as ... >From (Klienter AS K, Tid As Td, Personal AS P) JOIN Uppdrag AS U ON K.Klient_ID = U.Klient_ID ... or ... >From Tid As Td, Personal AS P, Klienter AS K JOIN Uppdrag AS U

Re: mysql old 4.* query fails on 5.*

2007-06-02 Thread Gmail User
> Anyone know whats wrong here? Try as ... >From (Klienter AS K, Tid As Td, Personal AS P) JOIN Uppdrag AS U ON K.Klient_ID = U.Klient_ID ... or ... >From Tid As Td, Personal AS P, Klienter AS K JOIN Uppdrag AS U ON K.Klient_ID = U.Klient_ID ... This is the problem I had in one of my queries

Re: mysql old 4.* query fails on 5.*

2007-05-31 Thread Baron Schwartz
Hi, consiglieri wrote: Hi I have upgraded to 5.0.22 and after a while I discovered that the following query no longer works.. it fails claiming " Unknown column 'K.Klient_ID' in 'on clause' " which seems entirely wrong. The query is as follows select Td.Datum, Td.Text AS Action, Td.Enhet AS

mysql old 4.* query fails on 5.*

2007-05-31 Thread consiglieri
Hi I have upgraded to 5.0.22 and after a while I discovered that the following query no longer works.. it fails claiming " Unknown column 'K.Klient_ID' in 'on clause' " which seems entirely wrong. The query is as follows select Td.Datum, Td.Text AS Action, Td.Enhet AS Tid, P.Fornamn AS Person

Re: update query fails

2002-05-22 Thread Ryan Hatch
be aware... linux/unix table names are case sensitive. if you're using Win32 MySQL on your system, the query might work, but on the ISP side, if it's a *NIX system... you must have the correct capitalization. moreover, if any of your variables contain a single quote character ( ' ), it will scre

update query fails

2002-05-22 Thread Sven Bentlage
Hi everyone! Are there any limitations on update queries, like on how many fields one can update at the same time? The first update query works just fine, the second does not work at all: working : " update memberscopy set password='$password' where name = '$f_name' and surname ='$f_

Re: auto_increment counter changes even if query fails

2001-11-12 Thread Heikki Tuuri
Maciek, >Hi, > >Is this correct for MySQL to increment the auto_increment counter if the >INSERT query fails? For example: > >mysql> CREATE TABLE test ( i INT NOT NULL AUTO_INCREMENT, c CHAR(16) NOT >NULL, PRIMARY KEY(i), UNIQUE(c)) type=InnoDB; >Query OK, 0 rows a

Re: auto_increment counter changes even if query fails

2001-11-12 Thread Heikki Tuuri
Maciek, >Hi, > >Is this correct for MySQL to increment the auto_increment counter if the >INSERT query fails? For example: > >mysql> CREATE TABLE test ( i INT NOT NULL AUTO_INCREMENT, c CHAR(16) NOT >NULL, PRIMARY KEY(i), UNIQUE(c)) type=InnoDB; >Query OK, 0 rows a

Re: auto_increment counter changes even if query fails

2001-11-12 Thread Heikki Tuuri
Maciek, >Hi, > >Is this correct for MySQL to increment the auto_increment counter if the >INSERT query fails? For example: > >mysql> CREATE TABLE test ( i INT NOT NULL AUTO_INCREMENT, c CHAR(16) NOT >NULL, PRIMARY KEY(i), UNIQUE(c)) type=InnoDB; >Query OK, 0 rows a

Re: auto_increment counter changes even if query fails

2001-11-12 Thread Heikki Tuuri
Maciek, >Hi, > >Is this correct for MySQL to increment the auto_increment counter if the >INSERT query fails? For example: > >mysql> CREATE TABLE test ( i INT NOT NULL AUTO_INCREMENT, c CHAR(16) NOT >NULL, PRIMARY KEY(i), UNIQUE(c)) type=InnoDB; >Query OK, 0 rows a

Re: auto_increment counter changes even if query fails

2001-11-12 Thread Heikki Tuuri
Maciek, >Hi, > >Is this correct for MySQL to increment the auto_increment counter if the >INSERT query fails? For example: > >mysql> CREATE TABLE test ( i INT NOT NULL AUTO_INCREMENT, c CHAR(16) NOT >NULL, PRIMARY KEY(i), UNIQUE(c)) type=InnoDB; >Query OK, 0 rows a

Re: auto_increment counter changes even if query fails

2001-11-12 Thread Heikki Tuuri
Maciek, >Hi, > >Is this correct for MySQL to increment the auto_increment counter if the >INSERT query fails? For example: > >mysql> CREATE TABLE test ( i INT NOT NULL AUTO_INCREMENT, c CHAR(16) NOT >NULL, PRIMARY KEY(i), UNIQUE(c)) type=InnoDB; >Query OK, 0 rows a

auto_increment counter changes even if query fails

2001-11-12 Thread Maciek Dobrzanski
Hi, Is this correct for MySQL to increment the auto_increment counter if the INSERT query fails? For example: mysql> CREATE TABLE test ( i INT NOT NULL AUTO_INCREMENT, c CHAR(16) NOT NULL, PRIMARY KEY(i), UNIQUE(c)) type=InnoDB; Query OK, 0 rows affected (0.25 sec) mysql> INSERT INT

Re: Query fails

2001-08-26 Thread Jason Brooke
> CREATE TABLE MSJOURNL (ACCT INT(3), > DESC CHAR(29), > DTE DATE) > > This query fails when MySQL encouters DESC. Changing DESC to DESCRIP causes > the query to work. I'm wondering if filtering for the reserved word DESCRIBE > causes DESC not to be legal for use in fiel

Re: Query fails

2001-08-26 Thread Jeremy Zawodny
On Sun, Aug 26, 2001 at 01:58:23PM -0700, Bill Angus wrote: > CREATE TABLE MSJOURNL (ACCT INT(3), > DESC CHAR(29), > DTE DATE) > > This query fails when MySQL encouters DESC. Changing DESC to DESCRIP > causes the query to work. I'm wondering if filtering for the > res

RE: Query fails

2001-08-26 Thread Venu
Hi !! )-Original Message- )From: Bill Angus [mailto:[EMAIL PROTECTED]] )Sent: Sunday, August 26, 2001 1:58 PM )To: [EMAIL PROTECTED] )Subject: Query fails ) ) )CREATE TABLE MSJOURNL (ACCT INT(3), )DESC CHAR(29), )DTE DATE) ) )This query fails when MySQL encouters DESC. Changing DESC to

Query fails

2001-08-26 Thread Bill Angus
CREATE TABLE MSJOURNL (ACCT INT(3), DESC CHAR(29), DTE DATE) This query fails when MySQL encouters DESC. Changing DESC to DESCRIP causes the query to work. I'm wondering if filtering for the reserved word DESCRIBE causes DESC not to be legal for use in field