IGNITE-4002: Fixed warning messages during ODBC driver installiation.

Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/67bd32c2
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/67bd32c2
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/67bd32c2

Branch: refs/heads/ignite-4680-sb
Commit: 67bd32c207b2334984fcbc47b20d8c52002a3e2a
Parents: 15c9780
Author: Igor Sapego <[email protected]>
Authored: Mon Mar 20 15:55:15 2017 +0300
Committer: Igor Sapego <[email protected]>
Committed: Mon Mar 20 15:55:15 2017 +0300

----------------------------------------------------------------------
 modules/platforms/cpp/odbc/install/install_amd64.cmd | 10 ++++++++--
 modules/platforms/cpp/odbc/install/install_x86.cmd   |  6 +++++-
 2 files changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/67bd32c2/modules/platforms/cpp/odbc/install/install_amd64.cmd
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/odbc/install/install_amd64.cmd 
b/modules/platforms/cpp/odbc/install/install_amd64.cmd
index 3b4b63f..2a2fff6 100644
--- a/modules/platforms/cpp/odbc/install/install_amd64.cmd
+++ b/modules/platforms/cpp/odbc/install/install_amd64.cmd
@@ -7,7 +7,9 @@ if [%ODBC_AMD64%] == [] (
        echo error: 64-bit driver is not specified. Call format: install_amd64 
abs_path_to_64_bit_driver [abs_path_to_32_bit_driver]
        pause
        exit /b 1
-) else if exist %ODBC_AMD64% (
+)
+
+if exist %ODBC_AMD64% (
        if exist %ODBC_AMD64%\ (
                echo warning: The path you have specified seems to be a 
directory. Note that you have to specify path to driver file itself instead.
        )
@@ -26,7 +28,11 @@ if [%ODBC_AMD64%] == [] (
 
 if [%ODBC_X86%] == [] (
        echo warning: 32-bit driver is not specified. If you want to install 
32-bit driver please specify path to it as a second argument.
-) else if exist %ODBC_X86% (
+       pause
+       exit /b 1
+)
+
+if exist %ODBC_X86% (
        if exist %ODBC_X86%\ (
                echo warning: The path you have specified seems to be a 
directory. Note that you have to specify path to driver file itself instead.
        )

http://git-wip-us.apache.org/repos/asf/ignite/blob/67bd32c2/modules/platforms/cpp/odbc/install/install_x86.cmd
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/odbc/install/install_x86.cmd 
b/modules/platforms/cpp/odbc/install/install_x86.cmd
index 93ced4b..911dbdf 100644
--- a/modules/platforms/cpp/odbc/install/install_x86.cmd
+++ b/modules/platforms/cpp/odbc/install/install_x86.cmd
@@ -5,7 +5,10 @@ set ODBC=%1
 if [%ODBC%] == [] (
        echo error: driver is not specified. Call format: install_x86 
abs_path_to_driver.
        pause
-) else if exist %ODBC% (
+       exit /b 1
+)
+
+if exist %ODBC% (
        if exist %ODBC%\ (
                echo warning: The path you have specified seems to be a 
directory. Note that you have to specify path to driver file itself instead.
        )
@@ -19,4 +22,5 @@ if [%ODBC%] == [] (
        echo Driver can not be found: %ODBC%
        echo Call format: install_x86 abs_path_to_driver
        pause
+       exit /b 1
 )

Reply via email to