Database DBMS error codes under symbian

The DBMS panic error code is only defined in the header file and does not appear in the SDK documentation. It is cumbersome to look up.

There are four types of DBMS error codes:
1 DBMS
2 DBMS-Server
3 DBMS-Store
4 DBMS-Table

When you encounter an error about the DBMS, the first thing to pay attention to is that error.

They are located in different header files as follows:

ud_std.h (DBMS)
EDbUnimplemented, 0
EDbInvalidColumn, 1
EDbUninitialised, 2
EDbRowLengthOverflow, 3
EDbTooManyKeys, 4
EDbInvalidViewWindowParameters, 5
EDbWrongType, 6
EDbInvalidIncrementalStep, 7
EDbNoColumnsInSeekKey 8

sd_std.h (DBMS-Server)
EDbsUnimplemented, 0
EDbsInvalidColumn, 1
EDbsWrongType, 2
EDbsNoRowData, 3
EDbsNotInUpdate, 4
EDbsBadDescriptor, 5
EDbsBadHandle, 6
EDbsStreamMarkInvalid, 7
EDbsStreamLocationInvalid, 8
EDbsObserverRequestPending 9

us_std.h (DBMS-Store)
EDbUnimplemented, 0
EDbNoStore, 1
EDbCannotSeek, 2
EDbNotFixedFieldType, 3
EDbWrongType 4

ut_std.h (DBMS-Table)
EDbInvalidColumn, 0
EDbWrongType, 1
EDbInUpdate, 2
EDbNotInUpdate, 3
EDbInvalidRow, 4
EDbRowNotRead, 5
EDbReadOnly, 6
EDbTableOpen, 7
EDbNotEvaluated, 8
EDbStreamOpen, 9
EDbRowSetConstraintMismatch, 10
EDbBeginNestedTransaction, 11
EDbUpdatesPendingOnCommit, 12
EDbUpdatesPendingOnRollback, 13
EDbNoCurrentTransaction, 14
EDbStreamsPendingOnCommit, 15
EDbStreamsPendingOnRollback, 16
EDbInvalidBookmark 17

I encountered two
panics today: One is DBMS-Table 3-EDbNotInUpdate, this is because I did not call UpdateL before calling SetColL of RDbTable, and the
other is DBMS-Store 4-EdbWrongType This is because I am executing SeekL of RDbTable The type used is inconsistent with the type of index. This error can be avoided by ensuring that the type of the parameter of the TDbSeekKey constructor is consistent with the type of the corresponding column of the Index you use.

 

Guess you like

Origin blog.csdn.net/windcao/article/details/1820113