|
|
|
При вставке записи в таблицу возникает ошибка....
|
|||
|---|---|---|---|
|
#18+
При вставке записи в таблицу возникает ошибка (JBuilder X): See com.borland.dx.dataset.DataSetException error code: BASE+37 com.borland.dx.dataset.DataSetException: DataSet has no unique row identifiers. Note: For QueryDataSets you need to disable metaDataUpdate.ROWID in the MetaDataUpdate property, in addition to setting the RowId property on a column. Делаю так (БД - Interbase): int recCount = queryDS_Entityes.getRowCount(); DataRow dataRow = new DataRow(queryDS_Entityes); dataRow.setString("ENTITY_ID", "_1"); // Ключевое поле, при вставке срабатывает триггер... dataRow.setTimestamp("D_CREATE", System.currentTimeMillis()); dataRow.setTimestamp("D_UPDATE", System.currentTimeMillis()); dataRow.setString("USER_CREATE_ID", command.getUserID()); dataRow.setString("USER_UPDATE_ID", command.getUserID()); queryDS_Entityes.addRow(dataRow); queryDS_Entityes.post(); ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.12.2004, 13:45 |
|
||
|
|

start [/forum/topic.php?fid=59&gotonew=1&tid=2153192]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
55ms |
get topic data: |
6ms |
get first new msg: |
4ms |
get forum data: |
1ms |
get page messages: |
20ms |
get tp. blocked users: |
1ms |
| others: | 188ms |
| total: | 294ms |

| 0 / 0 |
