![]() | |
![]() |
| | Thread Tools | Display Modes |
#41
| |||
| |||
|
|
It is about SQL UltraliteJ. I have updated to the forth EBF release. But I have still the problem about the function setDefault 1 : column_schema.setDefault( COLUMN_DEFAULT_GLOBAL_AUTOINC ) I define the table schema like this: conn.schemaCreateBegin(); ColumnSchema column_schema; TableSchema table_schema = conn.createTable("INTERVENTIONS"); column_schema = table_schema.createColumn( "id", Domain.INTEGER ); column_schema.setNullable( false ); column_schema.setDefault( ColumnSchema.COLUMN_DEFAULT_GLOBAL_AUTOINC ); column_schema = table_schema.createColumn( "description", Domain.VARCHAR, 512 ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "statut", Domain.INTEGER); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "duree", Domain.INTEGER ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "idtechnicien", Domain.INTEGER); column_schema.setNullable( true ); ... IndexSchema index_schema = table_schema.createPrimaryIndex( "primary" ); index_schema.addColumn( "id", IndexSchema.ASCENDING ); conn.schemaCreateComplete(); When I insert data into this table, I receive an exception : ULjException: ianywhere.ultralitej.implementation.JrException: UltraLiteJ Error[-195]: Column 'id' in table 'INTERVENTIONS' cannot be NULL 2: We have the function getLastIdentity of interface connection in M- business. But We have not the equivalencie in UltralitJ, has anyone good solution of getting the last identity ? |
#42
| |||
| |||
|
|
It is about SQL UltraliteJ. I have updated to the forth EBF release. But I have still the problem about the function setDefault 1 : column_schema.setDefault( COLUMN_DEFAULT_GLOBAL_AUTOINC ) I define the table schema like this: conn.schemaCreateBegin(); ColumnSchema column_schema; TableSchema table_schema = conn.createTable("INTERVENTIONS"); column_schema = table_schema.createColumn( "id", Domain.INTEGER ); column_schema.setNullable( false ); column_schema.setDefault( ColumnSchema.COLUMN_DEFAULT_GLOBAL_AUTOINC ); column_schema = table_schema.createColumn( "description", Domain.VARCHAR, 512 ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "statut", Domain.INTEGER); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "duree", Domain.INTEGER ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "idtechnicien", Domain.INTEGER); column_schema.setNullable( true ); ... IndexSchema index_schema = table_schema.createPrimaryIndex( "primary" ); index_schema.addColumn( "id", IndexSchema.ASCENDING ); conn.schemaCreateComplete(); When I insert data into this table, I receive an exception : ULjException: ianywhere.ultralitej.implementation.JrException: UltraLiteJ Error[-195]: Column 'id' in table 'INTERVENTIONS' cannot be NULL 2: We have the function getLastIdentity of interface connection in M- business. But We have not the equivalencie in UltralitJ, has anyone good solution of getting the last identity ? |
#43
| |||
| |||
|
|
It is about SQL UltraliteJ. I have updated to the forth EBF release. But I have still the problem about the function setDefault 1 : column_schema.setDefault( COLUMN_DEFAULT_GLOBAL_AUTOINC ) I define the table schema like this: conn.schemaCreateBegin(); ColumnSchema column_schema; TableSchema table_schema = conn.createTable("INTERVENTIONS"); column_schema = table_schema.createColumn( "id", Domain.INTEGER ); column_schema.setNullable( false ); column_schema.setDefault( ColumnSchema.COLUMN_DEFAULT_GLOBAL_AUTOINC ); column_schema = table_schema.createColumn( "description", Domain.VARCHAR, 512 ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "statut", Domain.INTEGER); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "duree", Domain.INTEGER ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "idtechnicien", Domain.INTEGER); column_schema.setNullable( true ); ... IndexSchema index_schema = table_schema.createPrimaryIndex( "primary" ); index_schema.addColumn( "id", IndexSchema.ASCENDING ); conn.schemaCreateComplete(); When I insert data into this table, I receive an exception : ULjException: ianywhere.ultralitej.implementation.JrException: UltraLiteJ Error[-195]: Column 'id' in table 'INTERVENTIONS' cannot be NULL 2: We have the function getLastIdentity of interface connection in M- business. But We have not the equivalencie in UltralitJ, has anyone good solution of getting the last identity ? |
#44
| |||
| |||
|
|
It is about SQL UltraliteJ. I have updated to the forth EBF release. But I have still the problem about the function setDefault 1 : column_schema.setDefault( COLUMN_DEFAULT_GLOBAL_AUTOINC ) I define the table schema like this: conn.schemaCreateBegin(); ColumnSchema column_schema; TableSchema table_schema = conn.createTable("INTERVENTIONS"); column_schema = table_schema.createColumn( "id", Domain.INTEGER ); column_schema.setNullable( false ); column_schema.setDefault( ColumnSchema.COLUMN_DEFAULT_GLOBAL_AUTOINC ); column_schema = table_schema.createColumn( "description", Domain.VARCHAR, 512 ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "statut", Domain.INTEGER); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "duree", Domain.INTEGER ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "idtechnicien", Domain.INTEGER); column_schema.setNullable( true ); ... IndexSchema index_schema = table_schema.createPrimaryIndex( "primary" ); index_schema.addColumn( "id", IndexSchema.ASCENDING ); conn.schemaCreateComplete(); When I insert data into this table, I receive an exception : ULjException: ianywhere.ultralitej.implementation.JrException: UltraLiteJ Error[-195]: Column 'id' in table 'INTERVENTIONS' cannot be NULL 2: We have the function getLastIdentity of interface connection in M- business. But We have not the equivalencie in UltralitJ, has anyone good solution of getting the last identity ? |
#45
| |||
| |||
|
|
It is about SQL UltraliteJ. I have updated to the forth EBF release. But I have still the problem about the function setDefault 1 : column_schema.setDefault( COLUMN_DEFAULT_GLOBAL_AUTOINC ) I define the table schema like this: conn.schemaCreateBegin(); ColumnSchema column_schema; TableSchema table_schema = conn.createTable("INTERVENTIONS"); column_schema = table_schema.createColumn( "id", Domain.INTEGER ); column_schema.setNullable( false ); column_schema.setDefault( ColumnSchema.COLUMN_DEFAULT_GLOBAL_AUTOINC ); column_schema = table_schema.createColumn( "description", Domain.VARCHAR, 512 ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "statut", Domain.INTEGER); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "duree", Domain.INTEGER ); column_schema.setNullable( true ); column_schema = table_schema.createColumn( "idtechnicien", Domain.INTEGER); column_schema.setNullable( true ); ... IndexSchema index_schema = table_schema.createPrimaryIndex( "primary" ); index_schema.addColumn( "id", IndexSchema.ASCENDING ); conn.schemaCreateComplete(); When I insert data into this table, I receive an exception : ULjException: ianywhere.ultralitej.implementation.JrException: UltraLiteJ Error[-195]: Column 'id' in table 'INTERVENTIONS' cannot be NULL 2: We have the function getLastIdentity of interface connection in M- business. But We have not the equivalencie in UltralitJ, has anyone good solution of getting the last identity ? |
#46
| |||
| |||
|
|
I don't see any trace of this report as an open action item but if this is a production affecting issue for you the most affective approach is to work directly with the support organization to assign priorities to engineering resources to address any bugs here. "GUO Lin" <guolin.mobi (AT) gmail (DOT) com> wrote in message news:ea20905d-2185-4bc3-b32c-bb55a2f10f17 (AT) f63g2000hsf (DOT) googlegroups.com... Hi, Nick I read the document many time. In fact, I found and reported the bug to Tom slee that ColumnSchema.COLUMN_DEFAULT_AUTOINC can not work when we reconnect the base in last release. And I thought that you would fix the bug about ColumnSchema ( COLUMN_DEFAULT_AUTOINC and COLUMN_DEFAULT_GLOBAL_AUTOINC ). Now the problem is about COLUMN_DEFAULT_GLOBAL_AUTOINC. I tested it in the forth EBF release. It does not work. You can see the trace in the first article. So I pose this problem here. Lin r |
#47
| |||
| |||
|
|
I don't see any trace of this report as an open action item but if this is a production affecting issue for you the most affective approach is to work directly with the support organization to assign priorities to engineering resources to address any bugs here. "GUO Lin" <guolin.mobi (AT) gmail (DOT) com> wrote in message news:ea20905d-2185-4bc3-b32c-bb55a2f10f17 (AT) f63g2000hsf (DOT) googlegroups.com... Hi, Nick I read the document many time. In fact, I found and reported the bug to Tom slee that ColumnSchema.COLUMN_DEFAULT_AUTOINC can not work when we reconnect the base in last release. And I thought that you would fix the bug about ColumnSchema ( COLUMN_DEFAULT_AUTOINC and COLUMN_DEFAULT_GLOBAL_AUTOINC ). Now the problem is about COLUMN_DEFAULT_GLOBAL_AUTOINC. I tested it in the forth EBF release. It does not work. You can see the trace in the first article. So I pose this problem here. Lin r |
#48
| |||
| |||
|
|
I don't see any trace of this report as an open action item but if this is a production affecting issue for you the most affective approach is to work directly with the support organization to assign priorities to engineering resources to address any bugs here. "GUO Lin" <guolin.mobi (AT) gmail (DOT) com> wrote in message news:ea20905d-2185-4bc3-b32c-bb55a2f10f17 (AT) f63g2000hsf (DOT) googlegroups.com... Hi, Nick I read the document many time. In fact, I found and reported the bug to Tom slee that ColumnSchema.COLUMN_DEFAULT_AUTOINC can not work when we reconnect the base in last release. And I thought that you would fix the bug about ColumnSchema ( COLUMN_DEFAULT_AUTOINC and COLUMN_DEFAULT_GLOBAL_AUTOINC ). Now the problem is about COLUMN_DEFAULT_GLOBAL_AUTOINC. I tested it in the forth EBF release. It does not work. You can see the trace in the first article. So I pose this problem here. Lin r |
#49
| |||
| |||
|
|
I don't see any trace of this report as an open action item but if this is a production affecting issue for you the most affective approach is to work directly with the support organization to assign priorities to engineering resources to address any bugs here. "GUO Lin" <guolin.mobi (AT) gmail (DOT) com> wrote in message news:ea20905d-2185-4bc3-b32c-bb55a2f10f17 (AT) f63g2000hsf (DOT) googlegroups.com... Hi, Nick I read the document many time. In fact, I found and reported the bug to Tom slee that ColumnSchema.COLUMN_DEFAULT_AUTOINC can not work when we reconnect the base in last release. And I thought that you would fix the bug about ColumnSchema ( COLUMN_DEFAULT_AUTOINC and COLUMN_DEFAULT_GLOBAL_AUTOINC ). Now the problem is about COLUMN_DEFAULT_GLOBAL_AUTOINC. I tested it in the forth EBF release. It does not work. You can see the trace in the first article. So I pose this problem here. Lin r |
#50
| |||
| |||
|
|
I don't see any trace of this report as an open action item but if this is a production affecting issue for you the most affective approach is to work directly with the support organization to assign priorities to engineering resources to address any bugs here. "GUO Lin" <guolin.mobi (AT) gmail (DOT) com> wrote in message news:ea20905d-2185-4bc3-b32c-bb55a2f10f17 (AT) f63g2000hsf (DOT) googlegroups.com... Hi, Nick I read the document many time. In fact, I found and reported the bug to Tom slee that ColumnSchema.COLUMN_DEFAULT_AUTOINC can not work when we reconnect the base in last release. And I thought that you would fix the bug about ColumnSchema ( COLUMN_DEFAULT_AUTOINC and COLUMN_DEFAULT_GLOBAL_AUTOINC ). Now the problem is about COLUMN_DEFAULT_GLOBAL_AUTOINC. I tested it in the forth EBF release. It does not work. You can see the trace in the first article. So I pose this problem here. Lin r |
![]() |
| Thread Tools | |
| Display Modes | |
| |