From 1f84261ffcb3c6efbe450bf904e3e8c63f9f80e0 Mon Sep 17 00:00:00 2001
From: Constantin Michael <constantin@codesynthesis.com>
Date: Thu, 27 Oct 2011 13:36:03 +0200
Subject: Only pass -S option to sqlplus when the Oracle driver is passed a
 file

---
 build/oracle/oracle | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'build')

diff --git a/build/oracle/oracle b/build/oracle/oracle
index 276ac4d..9228025 100755
--- a/build/oracle/oracle
+++ b/build/oracle/oracle
@@ -65,9 +65,10 @@ elif [ -n "$service" ]; then
   conn="$conn@$service"
 fi
 
-opt="-L -S $opt"
+opt="-L $opt"
 
 if [ -n "$1" ]; then
+  opt="-S $opt"
   exec $driver $opt $conn @$1
 else
   exec $driver $opt $conn
-- 
cgit v1.1