NIPO ODIN Version 5.17
Errors Using *SQLADD
The following errors can not be detected by a syntax check in the NIPO ODIN Developer, and will result in runtime errors during execution:
- Using a database table field name that does not exist reports
"[Error] Database field [Field] not found." - Using a table without a primary key makes
*SQLADD reports "[Error] Cannot add record to [Table], table has no key . - Putting a value that is too large to fit in an
int , smallint or tinyint at runtime and the record is not created. The issue reports "[ERROR] Database error in [Database]: Numeric value out of range.
The allowed range for fieldtype smallint is -32768 to +32767; the range for tinyint is 0 to 255; the range for Int depends on the constraints that are set in SQL."
The following errors can not be detected by a syntax check in the NIPO ODIN Developer, and will not result in runtime errors during execution:
- Using more variables than field names or more field names than variables is ignored. The result values or fields are left empty.
- Text is truncated if it does not fit a
varchar field. - Storing text in an integer field will store value zero (0).
- Putting a value in a
varchar stores the value as text rather than a number. The format depends on the *FORMAT command. - The table name may be specified with or without the owner (e.g.,
TestSqlAdd or MyName.TestSqlAdd or dbo.TestSqlAdd ). But even the wrong owner (e.g. NonExisting.TestSqlAdd ) may be used, as the owner is set by NIPO CATI / Web Master.
|