Hi,

Try with,

      , `consent` enum ('','Y','N','P') ,....

.mysql> desc table;
+-------+------------------+------+-----+---------+-------+
| Field | Type                         | Null     | Key | Default | Extra |
+-------+------------------+------+-----+---------+-------+
.
| consent  | enum('','Y','N','P') | YES   |         | NULL    |       |
+-------+------------------+------+-----+---------+-------+


Thanks
ViSolve DB Team

----- Original Message ----- From: "Olaf Stein" <[EMAIL PROTECTED]>
To: "MySql" <mysql@lists.mysql.com>
Sent: Wednesday, January 10, 2007 3:44 AM
Subject: Enum issue


Hi All

If I have a column
`consent` enum('Y','N','P') default NULL,

And I try to insert 'NULL' I get this error:

Warning: Data truncated for column 'consent' at row 1

What is the problem there?

What I am doing is moving data from one table to another with a python
script so I have to assign 'NULL' to the variable in the insert string (at
least to my knowledge) because python retrieves "None" (type <type
'NoneType'>) when querying a NULL value.

Help is appreciated.

Olaf



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to