我的应用程序遇到了一些问题。它适用于我的开发环境,但不适用于我的客户服务器。
带有时间戳的 generate_series 不起作用。相同的函数,但可以使用整数。
错误信息:
[Request processing failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query] with root cause
org.postgresql.util.PSQLException: ERROR: function generate_series(unknown, unknown, interval) does not exist
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
我无法在 PostgreSQL 中找到该函数。我在哪里可以获得这些方法的副本,以便我可以在可能的情况下安装它们。
最佳答案
你没有提到你的 PostgreSQL 版本,但是
generate_series(timestamp, timestamp, interval)
在 8.4 之前不可用
所以也许您使用的是过时的版本?
关于java - generate_series() 函数缺少 PostgreSQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9993739/