You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expressionexpr = CCJSqlParserUtil.parseCondExpression("test_table_enum.f1_enum IN ('TEST2'::test.\"test_enum\")", false);
@@ -279,29 +279,28 @@ public void testTimeOutIssue1582() throws InterruptedException {
279
279
// This statement is INVALID on purpose
280
280
// There are crafted INTO keywords in order to make it fail but only after a long time (40 seconds plus)
281
281
282
-
StringsqlStr = "" +
283
-
"select\n" +
284
-
" t0.operatienr\n" +
285
-
" , case\n" +
286
-
" when\n" +
287
-
" case when (t0.vc_begintijd_operatie is null or lpad((extract('hours' into t0.vc_begintijd_operatie::timestamp))::text,2,'0') ||':'|| lpad(extract('minutes' from t0.vc_begintijd_operatie::timestamp)::text,2,'0') = '00:00') then null\n" +
288
-
" else (greatest(((extract('hours' into (t0.vc_eindtijd_operatie::timestamp-t0.vc_begintijd_operatie::timestamp))*60 + extract('minutes' from (t0.vc_eindtijd_operatie::timestamp-t0.vc_begintijd_operatie::timestamp)))/60)::numeric(12,2),0))*60\n" +
289
-
" end = 0 then null\n" +
290
-
" else '25. Meer dan 4 uur'\n" +
291
-
" end \n" +
292
-
" as snijtijd_interval";
282
+
StringsqlStr = ""
283
+
+ "select\n"
284
+
+ " t0.operatienr\n"
285
+
+ " , case\n"
286
+
+ " when\n"
287
+
+ " case when (t0.vc_begintijd_operatie is null or lpad((extract('hours' into t0.vc_begintijd_operatie::timestamp))::text,2,'0') ||':'|| lpad(extract('minutes' from t0.vc_begintijd_operatie::timestamp)::text,2,'0') = '00:00') then null\n"
288
+
+ " else (greatest(((extract('hours' into (t0.vc_eindtijd_operatie::timestamp-t0.vc_begintijd_operatie::timestamp))*60 + extract('minutes' from (t0.vc_eindtijd_operatie::timestamp-t0.vc_begintijd_operatie::timestamp)))/60)::numeric(12,2),0))*60\n"
289
+
+ " end = 0 then null\n"
290
+
+ " else '25. Meer dan 4 uur'\n"
291
+
+ " end \n"
292
+
+ " as snijtijd_interval";
293
293
294
294
// With DEFAULT TIMEOUT 6 Seconds, we expect the statement to timeout normally
295
295
// A TimeoutException wrapped into a Parser Exception should be thrown
0 commit comments