我不会在 SQL 查询中使用postgresql 9.3 (JSON->"key") 中的新函数。但它不起作用。我查看Wavemaker 6.7文件夹,看到 jar lib "postgresql-9.0-801.jdbc4.jar"它的旧版本没有 JSON 函数。我能做些什么?我正在尝试粘贴新驱动程序,但这对我没有帮助。`
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
2014-04-04 19:10:39,310 ERROR [org.hibernate.hql.PARSER] - <line 1:11: unexpected token: >> (session E10C8E6D4B9DE5EAFF98F0F5004048D2, thread 30 invoke dataService.runQuery)
2014-04-04 19:10:39,313 ERROR [com.wavemaker.runtime.server.JSONRPCController] - <unexpected token: > near line 1, column 11 [select js->'b' from com.bddb.data.Test _a where _a.id=:id
]> (session E10C8E6D4B9DE5EAFF98F0F5004048D2, thread 30)
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: > near line 1, column 11 [select js->'b' from com.bddb.data.Test _a where _a.id=:id
]
at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
在 hibernate -可序列化,在 postgres - json中键入列js
如何在查询中从 json 获取值?