grails postgres消息:错误:列this_.id不存在 [英] grails postgres Message: ERROR: column this_.id does not exist

查看:99
本文介绍了grails postgres消息:错误:列this_.id不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Postgres作为用户域。

grails with postgres for User domain.

 Message: ERROR: column this_.id does not exist


推荐答案

解决了该问题。
对于用户域,我将postgres表作为用户。因此,默认情况下,当它尝试查询用户表时,不使用 user.id进行查询。 用户表的postgres出了点问题。

Got the issue. For User domain, I've postgres table as "user". So by default when it is trying to query user table, its not querying with "user.id". There is something wrong with postgres for "user" table.

所以我将用户表更新为 myapp_user表。问题解决了。

So I updated my "user" table to "myapp_user" table. The problem got solved.

这篇关于grails postgres消息:错误:列this_.id不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆