Hi,
I am wondering if such feature supported by ScalikeJDBC.
If I try with
NamedDB(dbPool.namedDB) localTx { implicit session =>
SQL(sqlStmt).execute().apply()
}
With execute or executeUpdate I usually get error
Failed preparing the statement (Reason: [Vertica][VJDBC](2446) ERROR: Cannot insert multiple commands into a prepared statement):
Execute statement example:
SELECT SWAP_PARTITIONS_BETWEEN_TABLES('mtu_enricher.stg_f_flat_affiliate_hour_report_cost_keys',
TO_DATE(CAST(:proc_date AS varchar), 'yyyy-mm-dd'),
TIMESTAMPADD('HOUR',23,TO_DATE(CAST(:proc_date AS varchar), 'yyyy-mm-dd')),
'mtu_enricher.f_flat_affiliate_hour_report_cost_keys', true);
TRUNCATE TABLE mtu_enricher.f_flat_affiliate_hour_report_keys;
SELECT COPY_TABLE('mtu_enricher.f_flat_affiliate_hour_report_base_keys','mtu_enricher.f_flat_affiliate_hour_report_keys');
When I run the same with Native Jdbc statement.execute() it works.
Is there any solution for that?
Thank you,