Bug #49328 Can't edit TEXT fields
Submitted: 2 Dec 2009 6:57 Modified: 2 Dec 2009 11:48
Reporter: Edward Rudd Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.8 OS:Any
Assigned to: CPU Architecture:Any

[2 Dec 2009 6:57] Edward Rudd
Description:
I have a table with a column of type TEXT NOT NULL and whenever I select content from the table or try to "EDIT" the table it does not show the contents of the field.. it only shows a "0".

Also if I try editing the content in "EDIT" mode (or adding a new entry) it will not let me enter anything but a number (and the embedded edit control is a number "spinner").

if I use raw SQL to "INSERT" or "UPDATE" it of course works fine.

This occurs on both Mac OS X and Linux

How to repeat:
CREATE TABLE myTable (
 ID int not null auto_increment PRIMARY KEY,
 myText TEXT
);
INSERT INTO myTable (myText) VALUES ('Test');

Then run 
EDIT `myTable`

the result view will list

ID myText
1  0

But if I do this

SELECT ID, CAST(myText AS CHAR(200)) FROM myTable

I can actually view the content.
[2 Dec 2009 11:48] Johannes Taxacher
this is a duplicate of Bug #48982