Open GoogleCodeExporter opened 9 years ago
Yeah,
I can confirm this.
Seems to be here (starting at line 54 in TableCreator.as):
if (!schema)
{
var dbschema:SQLSchemaResult = DB.getSchema(obj.connection);
var schema:SQLTableSchema;
// first, find the table this object represents
if (dbschema)
{
for each (var tmpTable:SQLTableSchema in dbschema.tables)
{
if (tmpTable.name == tableName)
{
schema = tmpTable;
break;
}
}
}
}
// if no table was found, create it, otherwise, update any missing fields
if (!schema)
{
. . .
I think it's a quick fix to the conditional statement or the placement of the
conditional statement.
Original comment by mlegr...@gmail.com
on 16 Sep 2008 at 12:09
A quick fix could something like that:
if (!schema)
{
try {
var dbschema:SQLSchemaResult = DB.getSchema(obj.connection);
} catch (e:SQLError) {
//Do something
}
var schema:SQLTableSchema;
// first, find the table this object represents
if (dbschema)
{
for each (var tmpTable:SQLTableSchema in dbschema.tables)
{
if (tmpTable.name == tableName)
{
schema = tmpTable;
break;
}
}
}
}
Original comment by noirbiza...@gmail.com
on 20 Oct 2008 at 7:06
Original issue reported on code.google.com by
geekin...@gmail.com
on 16 May 2008 at 9:01