Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more data to generated DSN config in odbc.ini Added cmake macro to easier populate values(for ini generations so far).
- Loading branch information
Showing
5 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Macro that checks if variable is defined, otherwise checks env for same name, otherwise uses default value | ||
MACRO(SET_VALUE _variable _default_value) | ||
IF (NOT ${_variable}) | ||
IF(DEFINED ENV{${_variable}}) | ||
SET(${_variable} $ENV{${_variable}}) | ||
ELSE() | ||
SET(${_variable} ${_default_value}) | ||
ENDIF() | ||
ENDIF() | ||
ENDMACRO(SET_VALUE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
[@TEST_DSN@] | ||
Driver = @TEST_DRIVER@ | ||
DESCRIPTION =MariaDB ODBC Connector Test | ||
DESCRIPTION = MariaDB ODBC Connector Test | ||
SERVER = @TEST_SERVER@ | ||
PORT = @TEST_PORT@ | ||
DATABASE = @TEST_SCHEMA@ | ||
UID = @TEST_UID@ | ||
PASSWORD = @TEST_PASSWORD@ | ||
# To turn off connectors log(slows execution significantly) | ||
#OPTIONS =4 | ||
|