Hello!

I'm playing with new ddl api of jOOQ 3.5 and I found some strange behavior.

I'll try translate my clojure code to Java:

DataType type = PostgresDataType.VARCHAR.length(2).nullable(false);
DSL.alterTable("t1").add(DSL.field("title"), type);

Will result in (as expected):
"alter table t1 add title varchar(2) not null"

DataType type = PostgresDataType.VARCHAR.length(2).nullable(false);
DSL.createTable("t1").column(DSL.field("title"), type);

Will result in:
"create table t1(title varchar(2))"

Seems that createTable does not respects the nullable flag of type. This is
expected behavior?
Additionally, seems that I can not set default value for field when a
creating the table, that is so?

Thank you very much.

Regards.
Andrey

-- 
Andrey Antukh - Андрей Антух - <[email protected]> / <[email protected]
>
http://www.niwi.be <http://www.niwi.be/page/about/>
https://github.com/niwibe

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to