Nonstop Database, HiRDB Version 9 UAP Development Guide

[Contents][Index][Back][Next]

18.7.29 setSQLWarningIgnore

(a) Function

Sets whether or not warnings returned from the database are to be discarded by the Connection class.

(b) Format
 
public void setSQLWarningIgnore ( boolean mode )
 
(c) Arguments

boolean mode
Specifies whether warnings are to be discarded.
true: Discard warnings.
false: Retain warnings.
(d) Return value

None.

(e) Functional detail

This method specifies whether warnings that occur in the Connection class are to be discarded. The default value is false (the warnings are to be retained).

Using this method is equivalent to specifying the SQLWARNING_IGNORE item described in 18.2.2(1) URL syntax and the SQLWARNING_IGNORE property described in 18.2.2(2) User properties.

For details about the relationships between the specification values and the warnings to be retained, see 18.4.12(2)(b) Issuing conditions for SQLWarning objects.

(f) Exceptions

None.