我正在尝试检查是否今天已经发生了对数据库的输入。当我使用MySqlWorkbench运行我的查询时,它可以工作,但是当我使用休眠模式时,查询似乎无法正常工作,即使数据库确实有日期,我也总是返回ORA-29259: end-of-input reached
ORA-06512: at "SYS.UTL_HTTP", line 1128
ORA-06512: at line 5
29259. 00000 - "end-of-input reached"
*Cause: The end of the input was reached.
*Action: If the end of the input is reached prematurely, check if the input
source terminates prematurely. Otherwise, close the connection
to the input.
。
查询是:
DECLARE
wk_http_request utl_http.req;
BEGIN
utl_http.set_wallet('file:/app/oracle/admin/A11/wallet', NULL);
wk_http_request := utl_http.begin_request('https://api.dpd.co.uk', 'POST', utl_http.http_version_1_1);
END;
/
true
来自java.sql.Date库。
答案 0 :(得分:1)
我通过将“ created_at”的实体日期类型的DataType更改为java.sql.Date来解决它,而以前是java.sqlTimestamp。