Jdbc_static: Getting a sql syntax error I did'nt write

Its looks very related, but I am not sure how to use "The answer"

The Answer is: SET GLOBAL sql_mode = 'ANSI_QUOTES';