aboutsummaryrefslogtreecommitdiff
path: root/build/oracle
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-27 13:36:03 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-01 13:46:41 +0200
commit1f84261ffcb3c6efbe450bf904e3e8c63f9f80e0 (patch)
tree7c418c8ba56eea463f69038fd7d85e97e9f96cfc /build/oracle
parentd1195999bfd67ca5aac2b0b5257a3538582f41e6 (diff)
Only pass -S option to sqlplus when the Oracle driver is passed a file
Diffstat (limited to 'build/oracle')
-rwxr-xr-xbuild/oracle/oracle3
1 files changed, 2 insertions, 1 deletions
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