MySQL Forums
Forum List  »  MySQL Workbench

db.Column.flags doesn't work properly??
Posted by: Johannes Mueller
Date: August 03, 2008 03:47AM

hi, i've tried to program a plugin in LUA, but it seems to me like there is a problem with db.Column.flags. I expected it to return a list of strings, instead it returns a list of userdata. Which means i can not compare the flags with strings like i want:

local i, flag
for i=1, getV.getn(catalog.schemata[x].tables[y].columns[z].flags) do
flag = catalog.schemata[x].tables[y].columns[z].flags
if ( flag == "UNSIGNED" ) do
-- do something
end
end

Am i correct, or do i have to convert it (but how)? I think in the documentation it's mentioned to be a list of strings. But i'm unsure - so i didn't open a Bug report.

Options: ReplyQuote


Subject
Views
Written By
Posted
db.Column.flags doesn't work properly??
5453
August 03, 2008 03:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.