Instructs OpenESQL to check if singleton SELECTs return more than one row when executed.
Syntax:
[NO]CHECKSINGLETON
Returns:
Directive
|
SQLCODE returns
|
SQLSTATE returns
|
None (default)*
|
+1
|
21000
|
CHECKSINGLETON
|
-811
|
21000
|
NOCHECKSINGLETON
|
0
|
21000
|
*When ANSI92ENTRY is specified without CHECKSINGLETON or NOCHECKSINGLETON (default), SQLCODE returns -1 and SQLSTATE returns
21000. See
ANSI92ENTRY for additional details.
|
Scope:
Used at compile time:
|
No
|
Behavior at run time:
|
Process
|
See
Scope - OpenESQL SQL Compiler Directive Options for more information.