From 435c6e5511abdbd6a02fd03f918cf6ba106d49bb Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Fri, 11 Jul 2008 10:43:13 +0000
Subject: [PATCH] document null return value
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@675913 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/org/apache/tools/ant/taskdefs/SQLExec.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/main/org/apache/tools/ant/taskdefs/SQLExec.java b/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
index 87f4893c6..03a50fec7 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
@@ -706,6 +706,9 @@ public class SQLExec extends JDBCTask {
* the base class would, should override this method but keep in
* mind that this class expects to get the same connection
* instance on consecutive calls.
+ *
+ * returns null if the connection does not connect to the
+ * expected RDBMS.
*/
protected Connection getConnection() {
if (conn == null) {