[Error] PostgreSQLSeverity.error 42P01 when get data from table
tvc12 opened this issue · comments
*This issue was automatically moved to: angel-dart/angel#212.
Have you run any migrations? If not, your table won't exist in the database.
Category exists in my database.
I'm try rename tableName: Category -> "Category"
@override
get tableName {
return '"Category"';
}
It's ok.
So, are you still having an error? A class named Category
will create a table named categories
.
@thosakwe no, class named Category
will created table named Category. but when i select it by getter tableName
@override
get tableName {
return 'Category';
}
I have error: PostgreSQLSeverity.error 42P01 when get data from table Category
Then i add double quotation marks " into getter tableName
, it work:
@override
get tableName {
return '"Category"';
}