diff options
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/Statement.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/Statement.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/Statement.java b/src/interfaces/jdbc/org/postgresql/Statement.java index dbd061bfd39..ea2cc0d0c33 100644 --- a/src/interfaces/jdbc/org/postgresql/Statement.java +++ b/src/interfaces/jdbc/org/postgresql/Statement.java @@ -110,6 +110,18 @@ public abstract class Statement timeout = seconds; } + /** + * This adds a warning to the warning chain. + * @param msg message to add + */ + public void addWarning(String msg) + { + if (warnings != null) + warnings.setNextWarning(new SQLWarning(msg)); + else + warnings = new SQLWarning(msg); + } + /* * The first warning reported by calls on this Statement is * returned. A Statement's execute methods clear its SQLWarning |