Gossamer Forum
Home : Products : Gossamer Forum : Testing Forum :

MySQL Problem

Quote Reply
MySQL Problem
The following works on windows with mysql 3.23.54:

UPDATE Table SET col = 1;

...where col is ENUM('0', '1')

...however on linux with mysql 3.23.58 the update causes the ENUM error value "0" to be inserted. It refuses to insert 1 unless you quote the number, eg...

UPDATE Table SET col = '1';

....why is this?

Using $sth->execute(1);

...also fails when using placeholders.
Subject Author Views Date
Thread MySQL Problem Anonymous 2733 Jan 1, 2004, 5:21 PM
Post Re: [Anonymous] MySQL Problem
Anonymous 2618 Jan 2, 2004, 7:31 AM