setQueryTimeout(int) is not yet implemented
春節過后這幾天干的活兒就沒一件痛痛快快的?
第一天是發現編譯環境有異動,我以為是代碼有問題,折騰了1天多。。。
第二天是自己機器上的IE8抽瘋弄得我以為是build有問題。。。
第三天從TimesTen轉到Psql的各種毛病。。。
好吧。言歸正傳:
1)找一個跟表無關的通用的單純的select語句作為測試語句不容易啊,
Dual是Oracle自帶的表,其他DBS木有的。。不用Dual的話Oracle又不認。
2)Cause: org.postgresql.util.PSQLException: Method org.postgresql.jdbc2.Jdbc2PreparedStatement.setQueryTimeout(int) is not yet implemented.
這個錯誤,把sqlMapConfig.xml中在settings里配置的defaultStatementTimeout去掉就可以避免了。但是,這個配置對PSQL應該OK啊。。。待查
【續】——
第一天是發現編譯環境有異動,我以為是代碼有問題,折騰了1天多。。。
第二天是自己機器上的IE8抽瘋弄得我以為是build有問題。。。
第三天從TimesTen轉到Psql的各種毛病。。。
好吧。言歸正傳:
1)找一個跟表無關的通用的單純的select語句作為測試語句不容易啊,
Dual是Oracle自帶的表,其他DBS木有的。。不用Dual的話Oracle又不認。
2)Cause: org.postgresql.util.PSQLException: Method org.postgresql.jdbc2.Jdbc2PreparedStatement.setQueryTimeout(int) is not yet implemented.
這個錯誤,把sqlMapConfig.xml中在settings里配置的defaultStatementTimeout去掉就可以避免了。但是,這個配置對PSQL應該OK啊。。。待查
【續】——
defaultStatementTimeout 確實不是所有的driver都支持的。
但去掉的話,TimesTen又不干了:太囧了。。。
但去掉的話,TimesTen又不干了:太囧了。。。
[TimesTen][TimesTen 7.0.5.9.0 CLIENT]Query Timeout must be numeric; if the Network Timeout
is non-zero, the Query Timeout must be greater than zero and less than the Network Timeout, else if the Network Timeout is zero, the Query Timeout must be greater than or equal to zero.
兜兜轉轉又遇到了這個之前遇到過的問題。這些driver就不能統一統一咩!
兜兜轉轉又遇到了這個之前遇到過的問題。這些driver就不能統一統一咩!