Hi Timm,

> For 'select' I can use StatementType.PREPARED_STATEMENT as a setting, but I
> can not figure out how to get this to work with 'insert':

You don't have to explicitly set that as it's the default...

>> System.out.println(create.insertInto(Factory.tableByName("test_table")).set(Factory.fieldByName("test_column"),Factory.val(1)));
>
> Generates:
>
>> insert into "test_table" ("test_column") values (1)

Yes, QueryPart.toString() inlines bind values for debugging. What
you're looking for is Query.getSQL() (taking the underlying value for
StatementType), or Query.getSQL(boolean) (overriding the StatementType
value)

Cheers
Lukas

Reply via email to