Firstly thanks for creating such a nice library - I am really enjoying working with it.
I have attached the files I had to change from the 'built-in-ds' sample - to demonstrate the problem. I have also included a sql script for PostgreSQL to load a simple database for it.
Firstly I found (for anyone else that tries this) that the options:
ignoreTextMatchStyleCaseSensitive="true" (for the datasource)
&
ignoreTextMatchStyle="true" (for the field)
Are required for the datasource so it doesn't run LOWER() on the UUID field when updating (which errors).
However I cannot find a way to get the datasource to not specify a 'null' value for the UUID primary key when inserting new records:
Is there a way to get the datasource to leave the field out or specify for it to use database's 'DEFAULT' value. I was expecting:
autoGenerated="true" to do this as mentioned in the post below but it seems to have no effect in my case.
http://forums.smartclient.com/showthread.php?t=23690&page=2
I have also tried - customInsertExpression="DEFAULT" but it does not work in my case because I only have the "Pro" edition.
Thank-you very much in advance.
server.properties changes:
I have attached the files I had to change from the 'built-in-ds' sample - to demonstrate the problem. I have also included a sql script for PostgreSQL to load a simple database for it.
Firstly I found (for anyone else that tries this) that the options:
ignoreTextMatchStyleCaseSensitive="true" (for the datasource)
&
ignoreTextMatchStyle="true" (for the field)
Are required for the datasource so it doesn't run LOWER() on the UUID field when updating (which errors).
However I cannot find a way to get the datasource to not specify a 'null' value for the UUID primary key when inserting new records:
Code:
org.postgresql.util.PSQLException: ERROR: null value in column "itemid" violates not-null constraint Detail: Failing row contains (null, Test, 222222222, null, AA, null, 2.55, null, 2014-07-22).
autoGenerated="true" to do this as mentioned in the post below but it seems to have no effect in my case.
http://forums.smartclient.com/showthread.php?t=23690&page=2
I have also tried - customInsertExpression="DEFAULT" but it does not work in my case because I only have the "Pro" edition.
Thank-you very much in advance.
Code:
SmartClient Version: v9.1p_2014-07-12/Pro Deployment (built 2014-07-12)
Code:
sql.defaultDatabase: PostgreSQL sql.PostgreSQL.driver.serverName: localhost sql.PostgreSQL.driver.portNumber: 5432 sql.PostgreSQL.driver.databaseName: builtinds sql.PostgreSQL.driver.user: postgres sql.PostgreSQL.driver.password: test
Comment