Grails 3.3.0 with PostgreSQL 10.1 gives column this_.id does not exist error

故事扮演 提交于 2019-12-02 04:12:31

in PostgreSQL, user is reserved word. You have to put double quote " when create user table with SQL-

create table "user" (...);

In your User domain put in :

static mapping = {
    table '`User`'
    password column: '`password`'
}

Related post :

grails postgres Message: ERROR: column this_.id does not exist

Cannot create a database table named 'user' in PostgreSQL

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!