Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AD-782] Remove unused functions from current code #98

Merged
merged 218 commits into from
Jun 30, 2022

Conversation

birschick-bq
Copy link
Contributor

Summary

Remove unused functions from current code

Description

  1. Enable disabled tests
  2. Optimize code for unicode

Related Issue

https://bitquill.atlassian.net/browse/AD-782

Additional Reviewers

@affonsoBQ
@alexey-temnikov
@alinaliBQ
@andiem-bq
@birschick-bq
@mitchell-elholm
@RoyZhang2022

andiemontoyeah and others added 30 commits January 10, 2022 14:30
change the install options for OpenSSL, since vcpkg is a preferred option
remove the WiX Toolset v4 requirement
add steps for the fix for ignite-odbc-tests.profraw error in README.
added some comments for my own convenience. Will remove later
fixed by updating ChildId in tlsCheckBox = CreateCheckBox
add comment to illustrate plan on what to do for the configuration window
bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values
… files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.
…iguration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)
added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.
Bruce Irschick and others added 7 commits June 22, 2022 13:55
…QLWCHAR (#48)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

* [AD-735] large dataset crash issue (#74)

### Summary

ODBC driver will not run on large document tests

### Description
The performance test crashes for large document tests. 

1. The root cause is the wrong memory is passed to SQLBindCol(). The parameter TargetValuePtr is passed &cols[i][0].data_dat[i]. The i could exceed 255 for large table while its max valid value should be 254. The correct value should be 0.
2. The SQLExtendedFetch is deprecated. Replace it with SQLFetch.

### Related Issue

https://bitquill.atlassian.net/browse/AD-735

* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit f311e3bc7df1fd66d7be66c8e60170a41d078c18.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit 2bcd2a492bd69fbde5de986a03c5a407a729ba47.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 124b7256d8f96fb31363aa2efb0423b115b11b0a.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit aa7731a67f123c8942b89cba8334efe15776f6c8.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit cbaeedd0cde8b82bc29134efcad28dba943751c2.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit 8d609dac52d3e3fc0442f2e8ec8526ec3eb2d6ab, reversing
changes made to 0aa20527606ccc11a7a99d6bd6f8d249fa8d1f61.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit df0cad5490612c695ca28cc8ee44c73dbb1b68bd.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetadataGetSchemaName
*  add empty test function for TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* [AD-589] implement unit test for DbDatabaseSchemaMetadataGetSchemaName

* [AD-521] refactor - change case of ssh to SSH for consistency

* [AD-589] address code review comments

* rename DocumentDbConnectionGetMetaData to DocumentDbConnectionGetDatabaseMetaData

* [AD-589] change case from MetaData to Metadata to match Java method name

* [AD-589] refactor: change from metaData to metadata

changes occurred in:
* DocumentDbConnectionGetDatabaseMetadata
* DocumentDbDatabaseSchemaMetadataGetSchemaName
* TestDocumentDbConnectionGetDatabaseMetadata
* TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* Birschick bq/sync up (#21)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

* [AD-735] large dataset crash issue (#23)

* first test

* fix performance test crash

* fix performance test crash

* fix whitespace issue

* rework based on comments

Co-authored-by: Andie Montoya <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: RoyZhang2022 <[email protected]>

* [AD-649] Add missing documentation (#73)

* Initial user/developer documentation
Co-authored-by: andiem-bq <[email protected]>
Co-authored-by: Bruce Irschick <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

* [AD-550] Adapt Foreign Keys (#75)

Summary
Adapt Foreign Keys (i.e., the SQLForeignKeys function)

Description
 JNI wrapper code for getImportedKeys
 adapt SQLForeignKeys function
 unit test for jni_test
 unit test for java_test
Related Issue
https://bitquill.atlassian.net/browse/AD-550

* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit f311e3bc7df1fd66d7be66c8e60170a41d078c18.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit 2bcd2a492bd69fbde5de986a03c5a407a729ba47.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 124b7256d8f96fb31363aa2efb0423b115b11b0a.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit aa7731a67f123c8942b89cba8334efe15776f6c8.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit cbaeedd0cde8b82bc29134efcad28dba943751c2.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit 8d609dac52d3e3fc0442f2e8ec8526ec3eb2d6ab, reversing
changes made to 0aa20527606ccc11a7a99d6bd6f8d249fa8d1f61.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit df0cad5490612c695ca28cc8ee44c73dbb1b68bd.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetadataGetSchemaName
*  add empty test function for TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* [AD-589] implement unit test for DbDatabaseSchemaMetadataGetSchemaName

* [AD-521] refactor - change case of ssh to SSH for consistency

* [AD-589] address code review comments

* rename DocumentDbConnectionGetMetaData to DocumentDbConnectionGetDatabaseMetaData

* [AD-589] change case from MetaData to Metadata to match Java method name

* [AD-589] refactor: change from metaData to metadata

changes occurred in:
* DocumentDbConnectionGetDatabaseMetadata
* DocumentDbDatabaseSchemaMetadataGetSchemaName
* TestDocumentDbConnectionGetDatabaseMetadata
* TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* Birschick bq/sync up (#21)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

* [AD-735] large dataset crash issue (#23)

* first test

* fix performance test crash

* fix performance test crash

* fix whitespace issue

* rework based on comments

* SQLPrimaryKey using JNI

* odbc test failure fix

* Revert "odbc test failure fix"

This reverts commit edb94599c77b9d60d68cbad9489838742f31805c.

* Revert "SQLPrimaryKey using JNI"

This reverts commit ba4b68f082542878524e9100d27f31045a2d14dc.

* [AD-550] Adapt Foreign Keys (#24)

* [AD-550] JNI implementation for getImportedKeys

* [AD-550] update Pull Request Template

* added reviewees Roy Zhang and Micthell Elholm

* [AD-550] add todo note to unit test

* [AD-550] define GetImportedKeys in database_metadata.h/.cpp

* add ODBC wrapper code to the JNI call for GetImportedKeys

* [AD-550] initialize string vars to be empty string in column_metadata_query

* [AD-550] modify ForeignKeysQuery to accept 3 arguments only

* modified ForeignKeysQuery to only accept catalog, schema, and table, as other fields are not needed.

* [AD-550] update column metadata for foreign keys

* [AD-550] fix typo in primary_key_meta.h

* [AD-550] define vars for foreign key meta

* [AD-550] add getter functions for vars in foreign_key_meta.h

* [AD-550] support vars in foreign key meta to be optional

* [AD-550] add headers for boost optional

* [AD-550] add headers and constructors for foreign key meta

* added ForeignKeyMeta constructor, and copy constructor
*added ForeignKeyMeta destructor
* define ForeignKeyMetaVector
* basically, complete foreign_key_meta.h

* [AD-550] implement resultset.getSmallInt

* implement resultset.getSmallInt taking column indices or column names as parameters
* make ColumnMeta::dataType be updated with  resultSet.Get()->GetSmallInt to simplify code and readbility

* [AD-550] Add foreign_key_meta.cpp

* implemented functions:
ReadForeignKeysColumnMetaVector
ForeignKeyMeta::Read

* [AD-550] update CMakeLists to include foreign_key_meta.cpp

* [AD-550] implement MakeRequestGetForeignKeysMeta

* MakeRequestGetForeignKeysMeta calls GetImportedKeys to get Jni ResultSet object for foreign keys, and then reads the resultSet object to fill in the meta object.

* [AD-550] update ForeignKeysQuery::DataAvailable and ForeignKeysQuery::Close

* update meta object accordingly whenForeignKeysQuery::Close() is called.
* return boolean for whether data is available based on meta object

* [AD-550] implement ForeignKeysQuery::Execute and FetchNextRow

* the code for ForeignKeysQuery::Execute and ForeignKeysQuery::FetchNextRow is based on ColumnMetadataQuery::Execute and ColumnMetadataQuery::FetchNextRow

* [AD-550] fix Mac and Linux build

* remove extra qualification on GetSmallInt function

* [AD-550] implement ForeignKeysQuery::GetColumn

* had formatting changes as well

* [AD-550] JNI implementation for getImportedKeys

* [AD-550] update Pull Request Template

* added reviewees Roy Zhang and Micthell Elholm

* [AD-550] add todo note to unit test

* [AD-550] define GetImportedKeys in database_metadata.h/.cpp

* add ODBC wrapper code to the JNI call for GetImportedKeys

* [AD-550] initialize string vars to be empty string in column_metadata_query

* [AD-550] modify ForeignKeysQuery to accept 3 arguments only

* modified ForeignKeysQuery to only accept catalog, schema, and table, as other fields are not needed.

* [AD-550] update column metadata for foreign keys

* [AD-550] fix typo in primary_key_meta.h

* [AD-550] define vars for foreign key meta

* [AD-550] add getter functions for vars in foreign_key_meta.h

* [AD-550] support vars in foreign key meta to be optional

* [AD-550] add headers for boost optional

* [AD-550] add headers and constructors for foreign key meta

* added ForeignKeyMeta constructor, and copy constructor
*added ForeignKeyMeta destructor
* define ForeignKeyMetaVector
* basically, complete foreign_key_meta.h

* [AD-550] implement resultset.getSmallInt

* implement resultset.getSmallInt taking column indices or column names as parameters
* make ColumnMeta::dataType be updated with  resultSet.Get()->GetSmallInt to simplify code and readbility

* [AD-550] Add foreign_key_meta.cpp

* implemented functions:
ReadForeignKeysColumnMetaVector
ForeignKeyMeta::Read

* [AD-550] update CMakeLists to include foreign_key_meta.cpp

* [AD-550] implement MakeRequestGetForeignKeysMeta

* MakeRequestGetForeignKeysMeta calls GetImportedKeys to get Jni ResultSet object for foreign keys, and then reads the resultSet object to fill in the meta object.

* [AD-550] update ForeignKeysQuery::DataAvailable and ForeignKeysQuery::Close

* update meta object accordingly whenForeignKeysQuery::Close() is called.
* return boolean for whether data is available based on meta object

* [AD-550] implement ForeignKeysQuery::Execute and FetchNextRow

* the code for ForeignKeysQuery::Execute and ForeignKeysQuery::FetchNextRow is based on ColumnMetadataQuery::Execute and ColumnMetadataQuery::FetchNextRow

* [AD-550] fix Mac and Linux build

* remove extra qualification on GetSmallInt function

* [AD-550] implement ForeignKeysQuery::GetColumn

* had formatting changes as well

* [AD-550] update docs for foreign_keys_query.h

* [AD-550] refine SQLForeignKey call

* [AD-550] add draft foreign key test for JNI test

* [AD-550] add test tables for jni test

* [AD-550] update test TestDocumentDbDatabaseMetaDataGetImportedKeys

* update test to query virtual table jni_test_001_sub_doc

* [AD-550] add SQLForeignKeys sql api test

* [AD-550] add logs for ReadForeignKeysColumnMetaVector

* PK* variables will contain the list of foreign keys in the specified table

* [AD-550] reformat jni_test

* [AD-550] implement TestDatabaseMetaDataGetImportedKeys for java_test

* [AD-550] add test document meta_queries_test_002_with_array

* this document will be used to test SQLForeignKeys in meta_queries_test

* [AD-550] refactor TestSQLForeignKeys test

* reason: I see that `SQLCHAR empty[] = "";` is used in meta_queries_test, and I think that might be a better way of writing the parameters

* [AD-550] add test for SQLForeignKeys in meta_queries_test

tests added:
* TestGetDataWithForeignKeysReturnsOneFromLocalServer
* TestGetDataWithForeignKeysReturnsNone
* they use test table meta_queries_test_002_with_array

* [AD-550] clean up

* add doc for SQLForeignKeys
* remove comments

* [AD-550] remove commented out code

* [AD-550] remove unneeded commented out code

* [AD-550] make ODBC pass nullptr for JString catalog and schema for SQLForeignKeys

*  in getImportedKeys, null boost::optional strings will be passed as nullptr to JDBC
* make jni test and java test pass null boost::optional strings to JNI calls for getImportedKeys
* ODBC now passes boost::optional strings foreignCatalog and foreignSchema to ExecuteGetForeignKeysQuery function.

* [AD-550] add if check for sqlStrLen

* if sqlString is empty, return boost::none

* [AD-550] debug `choco install cppcheck -y` not working on GitHub Actions

* [AD-550] add tests for testing empty string parameters

* added Java test TestDatabaseMetaDataGetImportedKeysReturnsNone
* added Jni test TestDocumentDbDatabaseMetaDataGetImportedKeysReturnsNone

* [AD-550] disable cppcheck

* created [AD-752](https://bitquill.atlassian.net/browse/AD-752) to investigate it further.

* [AD-550] change the place for code doc for function SQLForeignKeys

* [AD-550] update if statement check of SqlStringToOptString

* to resolve code review comment

* [AD-550] resolve code review comment

* The sqlStrLen is an int32_t, so "!sqlStrLen" can be removed

* [AD-550] make boost optional strings constant where needed

* previously, I changed `const std::string` to `boost::optional< std::string >` in some areas, and this is now fixed by replacing the latter with `boost::optional< const std::string >`

* [AD-550] SqlStringToOptString fix

* also fixed SqlStringToConstOptString
* reason: SQL_NTS is a flag that indicates that the string passed is a null-terminated string.

* [AD-550] make tests pass null to SQLForeignKeys

* [AD-550] add test case for TestGetDataWithForeignKeysReturnsNone

*  even with the correct table name, as long as empty strings are passed as catalog/schema, SQL_NO_DATA should be returned

* [AD-550] update SqlStringToOptString

* [AD-550] update TestSQLForeignKeys to pass NULL as parameters properly

* [AD-550] move `const` out of `boost::optional< const std::string >`

* reason: `const boost::optional< std::string >` works better than `boost::optional< const std::string >`.
* this commit is to resolve code review comments

* [AD-550] add meta_queries test that passes catalog as empty string

* [AD-550] Set `fetched` to false in ForeignKeysQuery::Close()

* [AD-550] add explicit conversion to boost::optional variable initialization

* [AD-550] resolve code review comment

* remove duplicate code

* [AD-550] remove function

* removed unneeded function: SqlStringToConstOptString

* [AD-649] Add missing documentation (#29)

### Summary

[AD-649] Add missing documentation

### Description
Update ODBC driver documentation

- [x] Documentation about connections string ( Parameters description)
- [x] Documentation about DSN configuration window ( with screenshots)
- [x] Documentation how the ODBC driver works ( ODBC and JDBC integration)
- [x] Documentation what is supported ( link with JDBC driver)

### Related Issue

https://bitquill.atlassian.net/browse/AD-649

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

* [AD-735] large dataset crash issue (#74)

### Summary

ODBC driver will not run on large document tests

### Description
The performance test crashes for large document tests. 

1. The root cause is the wrong memory is passed to SQLBindCol(). The parameter TargetValuePtr is passed &cols[i][0].data_dat[i]. The i could exceed 255 for large table while its max valid value should be 254. The correct value should be 0.
2. The SQLExtendedFetch is deprecated. Replace it with SQLFetch.

### Related Issue

https://bitquill.atlassian.net/browse/AD-735

* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit f311e3bc7df1fd66d7be66c8e60170a41d078c18.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit 2bcd2a492bd69fbde5de986a03c5a407a729ba47.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 124b7256d8f96fb31363aa2efb0423b115b11b0a.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit aa7731a67f123c8942b89cba8334efe15776f6c8.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit cbaeedd0cde8b82bc29134efcad28dba943751c2.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit 8d609dac52d3e3fc0442f2e8ec8526ec3eb2d6ab, reversing
changes made to 0aa20527606ccc11a7a99d6bd6f8d249fa8d1f61.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit df0cad5490612c695ca28cc8ee44c73dbb1b68bd.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetadataGetSchemaName
*  add empty test functi…
[AD-758] - Performance investigation SELECT * TABLE and SELECT * VIRTUAL-TABLE
* adding code coverage and pr badge comment

Co-authored-by: Alina (Xi) Li <[email protected]>
* enable needed test and delete not needed ones

* enable more tests

* enable more tests

* enable more tests

* debug github test failure

* fix for test failures

* fix for mac and linux test failures

* fix for mac and Linux test failures

* rework based on comments

* fix merge conflict

* fix for missing files

* fix test failure on Mac with iODBC

* fix for build failure

* code improvements based on comments
@github-actions
Copy link

github-actions bot commented Jun 24, 2022

MacOS Big Sur 11 Debug Build Unit Test Results

    1 files  ±  0      1 suites  ±0   2m 50s ⏱️ + 2m 34s
258 tests  - 25  246 ✔️ +  58  12 💤  - 83  0 ±0 
246 runs  +58  234 ✔️ +141  12 💤  - 83  0 ±0 

Results for commit d35f49f. ± Comparison against base commit 23e19c1.

This pull request removes 26 and adds 1 tests. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLDriverConnect
ApiRobustnessTestSuite ‑ TestSQLError
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
…
QueriesTestSuite ‑ TestConnectionTimeoutFail
This pull request removes 26 skipped tests and adds 1 skipped test. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLDriverConnect
ApiRobustnessTestSuite ‑ TestSQLError
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
…
QueriesTestSuite ‑ TestConnectionTimeoutFail

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jun 24, 2022

Windows 2022 (x64) Build Unit Test Results

    1 files  ±  0      1 suites  ±0   1m 53s ⏱️ + 1m 17s
260 tests  - 23  248 ✔️ +  60  12 💤  - 83  0 ±0 
248 runs  +60  236 ✔️ +143  12 💤  - 83  0 ±0 

Results for commit d35f49f. ± Comparison against base commit 23e19c1.

This pull request removes 24 and adds 1 tests. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
QueriesTestSuite ‑ TestBindNullParameter
QueriesTestSuite ‑ TestConnectionTimeoutBatch
…
QueriesTestSuite ‑ TestConnectionTimeoutFail
This pull request removes 24 skipped tests and adds 1 skipped test. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
QueriesTestSuite ‑ TestBindNullParameter
QueriesTestSuite ‑ TestConnectionTimeoutBatch
…
QueriesTestSuite ‑ TestConnectionTimeoutFail

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jun 24, 2022

Ubuntu 20.04 Debug Build Unit Test Results

    1 files  ±  0      1 suites  ±0   43s ⏱️ +28s
260 tests  - 23  248 ✔️ +60  12 💤  - 83  0 ±0 
248 runs  +60  248 ✔️ +60    0 💤 ±  0  0 ±0 

Results for commit d35f49f. ± Comparison against base commit 23e19c1.

This pull request removes 24 and adds 1 tests. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
QueriesTestSuite ‑ TestBindNullParameter
QueriesTestSuite ‑ TestConnectionTimeoutBatch
…
QueriesTestSuite ‑ TestConnectionTimeoutFail
This pull request removes 24 skipped tests and adds 1 skipped test. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
QueriesTestSuite ‑ TestBindNullParameter
QueriesTestSuite ‑ TestConnectionTimeoutBatch
…
QueriesTestSuite ‑ TestConnectionTimeoutFail

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jun 24, 2022

Windows 2022 (x32) Build Unit Test Results

    1 files  ±  0      1 suites  ±0   1m 37s ⏱️ +59s
260 tests  - 23  248 ✔️ +  60  12 💤  - 83  0 ±0 
248 runs  +60  236 ✔️ +143  12 💤  - 83  0 ±0 

Results for commit d35f49f. ± Comparison against base commit 23e19c1.

This pull request removes 24 and adds 1 tests. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
QueriesTestSuite ‑ TestBindNullParameter
QueriesTestSuite ‑ TestConnectionTimeoutBatch
…
QueriesTestSuite ‑ TestConnectionTimeoutFail
This pull request removes 24 skipped tests and adds 1 skipped test. Note that renamed tests count towards both.
ApiRobustnessTestSuite ‑ TestSQLNumParams
ApiRobustnessTestSuite ‑ TestSQLNumParamsEscaped
MetaQueriesTestSuite ‑ TestDateTypeColumnAttributeCurdate
MetaQueriesTestSuite ‑ TestDdlColumnsMeta
MetaQueriesTestSuite ‑ TestDdlColumnsMetaEscaped
MetaQueriesTestSuite ‑ TestDdlTablesMeta
MetaQueriesTestSuite ‑ TestDdlTablesMetaTableTypeList
MetaQueriesTestSuite ‑ TestInsertTooLongValueFail
QueriesTestSuite ‑ TestBindNullParameter
QueriesTestSuite ‑ TestConnectionTimeoutBatch
…
QueriesTestSuite ‑ TestConnectionTimeoutFail

♻️ This comment has been updated with latest results.

@github-actions
Copy link

MacOS Big Sur 11 Debug Build Code Coverage Result

Code Coverage

Package Line Rate Branch Rate Complexity Health
src.odbc.include.ignite.odbc 8% 0% 0
src.odbc.include.ignite.odbc.app 20% 0% 0
src.odbc.include.ignite.odbc.binary 0% 0% 0
src.odbc.include.ignite.odbc.cache.query 0% 0% 0
src.odbc.include.ignite.odbc.cluster 0% 0% 0
src.odbc.include.ignite.odbc.common 11% 11% 0
src.odbc.include.ignite.odbc.compute 0% 0% 0
src.odbc.include.ignite.odbc.config 84% 33% 0
src.odbc.include.ignite.odbc.diagnostic 86% 50% 0
src.odbc.include.ignite.odbc.impl 0% 0% 0
src.odbc.include.ignite.odbc.impl.binary 0% 0% 0
src.odbc.include.ignite.odbc.impl.cache 0% 0% 0
src.odbc.include.ignite.odbc.impl.cache.query 0% 0% 0
src.odbc.include.ignite.odbc.impl.cache.query.continuous 0% 0% 0
src.odbc.include.ignite.odbc.impl.compute 0% 0% 0
src.odbc.include.ignite.odbc.impl.interop 0% 0% 0
src.odbc.include.ignite.odbc.jni 48% 40% 0
src.odbc.include.ignite.odbc.meta 47% 50% 0
src.odbc.include.ignite.odbc.query 15% 0% 0
src.odbc.include.ignite.odbc.sql 11% 0% 0
src.odbc.include.ignite.odbc.streaming 0% 0% 0
src.odbc.os.linux.include.ignite.odbc.common 0% 0% 0
src.odbc.os.linux.src.common 34% 35% 0
src.odbc.src 43% 24% 0
src.odbc.src.app 16% 3% 0
src.odbc.src.binary 0% 0% 0
src.odbc.src.cluster 2% 0% 0
src.odbc.src.common 22% 10% 0
src.odbc.src.config 54% 33% 0
src.odbc.src.diagnostic 44% 19% 0
src.odbc.src.impl 1% 0% 0
src.odbc.src.impl.binary 0% 0% 0
src.odbc.src.impl.cache 2% 0% 0
src.odbc.src.impl.cache.query 2% 0% 0
src.odbc.src.impl.cache.query.continuous 0% 0% 0
src.odbc.src.impl.cluster 2% 0% 0
src.odbc.src.impl.compute 0% 0% 0
src.odbc.src.impl.interop 1% 0% 0
src.odbc.src.jni 66% 26% 0
src.odbc.src.jni.os.linux 46% 23% 0
src.odbc.src.meta 89% 54% 0
src.odbc.src.query 63% 27% 0
src.odbc.src.sql 25% 9% 0
src.odbc.src.streaming 3% 0% 0
Summary 34% (5482 / 16193) 21% (8756 / 41715) 0

@github-actions
Copy link

Ubuntu 20.04 Debug Build Unit Test Results Check

Code Coverage

Package Line Rate Branch Rate Complexity Health
src.odbc.include.ignite.odbc 28% 16% 0
src.odbc.include.ignite.odbc.app 45% 0% 0
src.odbc.include.ignite.odbc.binary 0% 0% 0
src.odbc.include.ignite.odbc.cache.query 0% 0% 0
src.odbc.include.ignite.odbc.common 60% 34% 0
src.odbc.include.ignite.odbc.compute 0% 0% 0
src.odbc.include.ignite.odbc.config 100% 50% 0
src.odbc.include.ignite.odbc.diagnostic 82% 50% 0
src.odbc.include.ignite.odbc.impl 0% 0% 0
src.odbc.include.ignite.odbc.impl.binary 0% 0% 0
src.odbc.include.ignite.odbc.impl.cache.query 0% 0% 0
src.odbc.include.ignite.odbc.impl.cache.query.continuous 0% 0% 0
src.odbc.include.ignite.odbc.impl.compute 0% 0% 0
src.odbc.include.ignite.odbc.impl.interop 0% 0% 0
src.odbc.include.ignite.odbc.jni 77% 39% 0
src.odbc.include.ignite.odbc.meta 71% 50% 0
src.odbc.include.ignite.odbc.query 20% 0% 0
src.odbc.include.ignite.odbc.sql 50% 11% 0
src.odbc.include.ignite.odbc.streaming 0% 0% 0
src.odbc.os.linux.include.ignite.odbc.common 0% 0% 0
src.odbc.os.linux.src.common 34% 42% 0
src.odbc.src 40% 25% 0
src.odbc.src.app 23% 12% 0
src.odbc.src.binary 0% 0% 0
src.odbc.src.cluster 0% 0% 0
src.odbc.src.common 28% 17% 0
src.odbc.src.config 52% 34% 0
src.odbc.src.diagnostic 32% 15% 0
src.odbc.src.impl 0% 0% 0
src.odbc.src.impl.binary 0% 0% 0
src.odbc.src.impl.cache 0% 0% 0
src.odbc.src.impl.cache.query 0% 0% 0
src.odbc.src.impl.cache.query.continuous 0% 0% 0
src.odbc.src.impl.cluster 0% 0% 0
src.odbc.src.impl.compute 0% 0% 0
src.odbc.src.impl.interop 0% 0% 0
src.odbc.src.jni 63% 27% 0
src.odbc.src.jni.os.linux 37% 20% 0
src.odbc.src.meta 88% 54% 0
src.odbc.src.query 58% 27% 0
src.odbc.src.sql 18% 8% 0
src.odbc.src.streaming 0% 0% 0
Summary 34% (5374 / 15792) 23% (8363 / 36758) 0

@github-actions
Copy link

Windows 2022 (x32) Debug Build Unit Test Results Check

Code Coverage

Package Line Rate Branch Rate Complexity Health
D:\a\amazon-documentdb-odbc-driver\amazon-documentdb-odbc-driver\build\odbc\bin\Debug\ignite.odbc.dll 32% 0% 0
Summary 32% (6339 / 20071) 0% (0 / 0) 0

Copy link
Contributor

@alinaliBQ alinaliBQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@birschick-bq birschick-bq merged commit bbbeadc into develop Jun 30, 2022
@birschick-bq birschick-bq deleted the royzhang2022/AD-782/remove-unused-functions branch June 30, 2022 18:29
affonsov pushed a commit that referenced this pull request Nov 16, 2022
* remove some es prefixes

* remove es prefixes

* remove more es prefixes

* remove prefixes

* return false for deprecated functions

* add test cases for SQLForeignKeys, SQLPrimaryKeys

* add test cases for remaining catalog functions

* add test cases for unsupported functions

* address review comments, remove more es prefixes, rename overloading functions

* add impl and a test case for SQLTransact

* use static_cast

* add -fPIC compiler option
affonsov pushed a commit that referenced this pull request Nov 16, 2022
* Bug fix, support long type for aggregation (#522)

* Bug fix, support long type for aggregation

* change to datetime to JDBC format

* Opendistro Release 1.9.0 (#532)

* prepare odfe 1.9

* Fix all ES 7.8 compile and build errors

* Revert changes as Lombok is working now

* Update CustomExternalTestCluster.java

* Fix license headers check

* Use splitFieldsByMetadata to separate fields when calling SearchHit constructor

* More fixes for ODFE 1.9

* Remove todo statement

* Add ODFE 1.9.0 release notes

* Rename release notes to use 4 digit versions (#547)

* Revert changes ahead of develop branch in master (#551)

* Revert "Rename release notes to use 4 digit versions (#547)"

This reverts commit 33c6d3e37691e40c19d7d5892318e7ad23a82def.

* Revert "Opendistro Release 1.9.0 (#532)"

This reverts commit 254f2e0a854ba2c05aca159a9f7ff9af9867c22c.

* Revert "Bug fix, support long type for aggregation (#522)"

This reverts commit fb2ed912c8bfe50abed8fba182f2125905220cb4.

* Merge all SQL repos and adjust workflows (#549) (#554)

* merge all sql repos

* fix test and build workflows

* fix workbench and odbc path

* fix workbench and odbc path

* restructure workbench dir and fix workflows

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* revert workbench directory structure

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* update workbench workflow for release

* Delete .github/ in sql-workbench directory

* Add cypress to sql-workbench

* Sync latest ODBC commits

* Sync latest workbench commits (will add cypress in separate PR)

* Add ignored ODBC libs

* add date and time support (#560)

* add date and time support

* update doc

* update doc

* Revert "add date and time support (#560)" (#567)

This reverts commit 4b33a2ff54f288c1a2bd07911062ec5943e3fe00.

* add error details for all server communication errors (#645)

- add null check to avoid crashing if details not initialized

* Revert "add error details for all server communication errors (#645)" (#653)

This reverts commit c11125d752fdd5554608de170a3688dcd4ad544c.

* Fix download link in package description (#729)

* Change SQL plugin version from 1.11.0.1 to 1.11.0.0 (#789)

* Adding example of nested() for more complex nested queries (#799)

* Revert "Adding example of nested() for more complex nested queries (#799)" (#800)

This reverts commit aa115cc296301025189cfa6e6a76e06fa43631a2.

* Release/0.3.0 (#82)

* AT 702 Metadata Support - Implement SQLTables (#49)

Added support for SQLTables

* AT-712 MetaData Support - Implement SQLGetInfo (#50)

Add support for SQLGetInfo

* At-707 - Implement SQLColumns (#51)

* Basically works

* Refactored and add more tests

* Refactored code

* Refactored

* Refactored

* Added more test cases

* Fix macOS build errors

* Fixed macOS build

* basic structure for SQLColumns

* remove redundant variable declaration

* add integration tests for SQLColumns

* fix incomparable type in ConvertPattern

* address code review comments

Co-authored-by: Jerry Leung <[email protected]>

* AT-711 Metadata Support - Implement SQLGetTypeInfo (#52)

* Basically working

* Added integration test cases

* Adjust test cases due to necessary change for excel

* Adjust for macOS build

* Removed commented code

* Fixed build errors

* Worked around execution not concurrent problem

* Address review

* Address code review

* Update src/odfesqlodbc/es_info.cpp

Co-authored-by: Yan Wang <[email protected]>

* Address code review

* Address code review

* Fixed integration test cases

* Update src/odfesqlodbc/es_types.c

Co-authored-by: Yan Wang <[email protected]>

* Address code revie

Co-authored-by: Yan Wang <[email protected]>

* At 706 - AAD support (#53)

* get access token

* add libcurl dependency

* use http client inside aws sdk

* AAD support

* resolve base64 decoding issue

* fix format

* fix indentation

* remove demo from cmake

* revert format change

* revert format fchange

* make role arn available in AAD auth mode

* Remove password log message (#55)

* AT 749 - Improve performance of query execution (#54)

* Added QueryAsync mechanism and updated related documentation

* Manual Mac build (#58)

* make mac build manually

* add line break

* At 742 Remove integration tests from ODBC Distribution (#57)

* Removing VLD dependencies

* AT-761 - Adjust catalog test cases for testing sample timestream database (#61)

Adjust catalog test cases

* AT-761 - Added integration test cases to test Amazon Timestream sample tables (#62)

* Added integration test cases to test Amazon Timestream sample tables

* At 772 Bump SDK version to 1.8.186 (#60)

* bump aws sdk version to 1.9.19, and remove unrelated files

* change aws sdk version from 1.9.19 to 1.8.186 to resolve compiler warning

* use TS_ODBC_VERSION instead of hardcoing

* remove re-definition

* remove gibberish

* AT-705 Okta authentication support (#56)

* Okta support

* uncomment the tests

* fix build error in mac and win32

* refactor authentication

* refactor AAD and Okta authentication into their own classes

* add tests

* add connection unit tests to github actions

* remove use of SimpleAWSCredentialsProvider, just use AWSCredentials

* resolve code review comments

* make the parameter const reference for DecodeHex()

* remove constness for value returned by c_str()

* remove use of rabbit, use Aws::Utils::Json instead

* Address review comments

* remove demo files

* address code reviews

* make base64url encoding table a constant, and address nits

* make some variables static const inline

* use anonymous namespace instead of private static for some variables.

* remove duplicate var definition

* fix cppcheck warning

* AT-770 get rid of rapidjson and rabbit (#63)

* get rid of rapidjson and rabbit

* add newline at the end of file

* AT-704 Query cancel (#59)

* Query cancel

* AT-765 Refactor the connection function (#64)

* Refactored connect functions into smaller functions

* At 764 Add user agent for AWS client config (#65)

* test getting application name in mac

* get application name in windows

* add user agent in client config

* remove unused include

* add log msg

* add unit tests for GetUserAgent()

* remove unused library folder variable in cmakelist (#66)

* AT-774 throw an exception when scalar type not set or unsupported (#68)

* throw an exception when scalar type not set or unsupported

* use SC_set_error

* add statement as parameter in SendQueryGetResult

* change signature of _CC_(Metadata)_from_TSResult

* AT-769 Code to limit size of the query (#67)

* Added the size limit of queue

* AT 763 Fix Debug build to test for Windows memory leaks (#70)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* AT-773/AT-775 - add comments for functions in es_parse_result.cpp (#69)

* add comments for functions in es_parse_result.cpp

* add extra line between function signatures

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

Removed extra "and"

* AT-777 mask password (#74)

* mask password

* change Idp to IdP

* Added ODBCcli tools

* AT-818 Support Debug mode for Mac (#71)

* Added support Debug mode for macOS

* At 766 Refactor SQLPrepare to run metadata statement (#73)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* remove TSResult struct and related functions

* run metadata statement in SQLPrepare

* refactor SendQueryGetResult and remove unneeded CC* functions

* avoid extra strlen calls, and add a test case for SQLPrepare->SQLExecDirect

* remove extra allocation/deallocation in API_Prepare, add test cases for SQLPrepare->SQLDescribeCol

* remove commented code, call SC_initialize_and_recycle when returning SQL_ERROR

Co-authored-by: Jerry Leung <[email protected]>

* AT-819 - Integration test result log files are truncated (#76)

* Resolve the x86 and x64 drivers and add registry for github actions

* Fixed new line problem

* Revised

* Revised

* Fixed Win32 reg

* Test

* test

* Test

* Fixed connection error log

* Refactored

* Fixed integration test cases

* Renames files to remove ts_ and es_prefixes.

* Changed ES_TYPE_CHAR to SQL_CHAR

* Changed ES_TYPE to TS_TYPE

* Renamed ES_ variables to TS_

* Removed commented code

* Changes to parse_result for refactoring sqlPrepare

* Address code review

* Removed Semaphore files since they are no longer used.

* Fixed macOS

* Update README.md

* Fix mac build (#79)

* Fix

* Added quotation mark

* Update README.md

* Update client.cpp

Since the number of columns doesn't change per row, only call SQLNumResultCols if it isn't set.

* Update CHANGELOG.md

* Update CMakeLists.txt

* Update helper.cpp

Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Yan Wang <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>

* Release/0.4.0 (#102)

* AT 702 Metadata Support - Implement SQLTables (#49)

Added support for SQLTables

* AT-712 MetaData Support - Implement SQLGetInfo (#50)

Add support for SQLGetInfo

* At-707 - Implement SQLColumns (#51)

* Basically works

* Refactored and add more tests

* Refactored code

* Refactored

* Refactored

* Added more test cases

* Fix macOS build errors

* Fixed macOS build

* basic structure for SQLColumns

* remove redundant variable declaration

* add integration tests for SQLColumns

* fix incomparable type in ConvertPattern

* address code review comments

Co-authored-by: Jerry Leung <[email protected]>

* AT-711 Metadata Support - Implement SQLGetTypeInfo (#52)

* Basically working

* Added integration test cases

* Adjust test cases due to necessary change for excel

* Adjust for macOS build

* Removed commented code

* Fixed build errors

* Worked around execution not concurrent problem

* Address review

* Address code review

* Update src/odfesqlodbc/es_info.cpp

Co-authored-by: Yan Wang <[email protected]>

* Address code review

* Address code review

* Fixed integration test cases

* Update src/odfesqlodbc/es_types.c

Co-authored-by: Yan Wang <[email protected]>

* Address code revie

Co-authored-by: Yan Wang <[email protected]>

* At 706 - AAD support (#53)

* get access token

* add libcurl dependency

* use http client inside aws sdk

* AAD support

* resolve base64 decoding issue

* fix format

* fix indentation

* remove demo from cmake

* revert format change

* revert format fchange

* make role arn available in AAD auth mode

* Remove password log message (#55)

* AT 749 - Improve performance of query execution (#54)

* Added QueryAsync mechanism and updated related documentation

* Manual Mac build (#58)

* make mac build manually

* add line break

* At 742 Remove integration tests from ODBC Distribution (#57)

* Removing VLD dependencies

* AT-761 - Adjust catalog test cases for testing sample timestream database (#61)

Adjust catalog test cases

* AT-761 - Added integration test cases to test Amazon Timestream sample tables (#62)

* Added integration test cases to test Amazon Timestream sample tables

* At 772 Bump SDK version to 1.8.186 (#60)

* bump aws sdk version to 1.9.19, and remove unrelated files

* change aws sdk version from 1.9.19 to 1.8.186 to resolve compiler warning

* use TS_ODBC_VERSION instead of hardcoing

* remove re-definition

* remove gibberish

* AT-705 Okta authentication support (#56)

* Okta support

* uncomment the tests

* fix build error in mac and win32

* refactor authentication

* refactor AAD and Okta authentication into their own classes

* add tests

* add connection unit tests to github actions

* remove use of SimpleAWSCredentialsProvider, just use AWSCredentials

* resolve code review comments

* make the parameter const reference for DecodeHex()

* remove constness for value returned by c_str()

* remove use of rabbit, use Aws::Utils::Json instead

* Address review comments

* remove demo files

* address code reviews

* make base64url encoding table a constant, and address nits

* make some variables static const inline

* use anonymous namespace instead of private static for some variables.

* remove duplicate var definition

* fix cppcheck warning

* AT-770 get rid of rapidjson and rabbit (#63)

* get rid of rapidjson and rabbit

* add newline at the end of file

* AT-704 Query cancel (#59)

* Query cancel

* AT-765 Refactor the connection function (#64)

* Refactored connect functions into smaller functions

* At 764 Add user agent for AWS client config (#65)

* test getting application name in mac

* get application name in windows

* add user agent in client config

* remove unused include

* add log msg

* add unit tests for GetUserAgent()

* remove unused library folder variable in cmakelist (#66)

* AT-774 throw an exception when scalar type not set or unsupported (#68)

* throw an exception when scalar type not set or unsupported

* use SC_set_error

* add statement as parameter in SendQueryGetResult

* change signature of _CC_(Metadata)_from_TSResult

* AT-769 Code to limit size of the query (#67)

* Added the size limit of queue

* AT 763 Fix Debug build to test for Windows memory leaks (#70)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* AT-773/AT-775 - add comments for functions in es_parse_result.cpp (#69)

* add comments for functions in es_parse_result.cpp

* add extra line between function signatures

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

Removed extra "and"

* AT-777 mask password (#74)

* mask password

* change Idp to IdP

* Added ODBCcli tools

* AT-818 Support Debug mode for Mac (#71)

* Added support Debug mode for macOS

* At 766 Refactor SQLPrepare to run metadata statement (#73)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* remove TSResult struct and related functions

* run metadata statement in SQLPrepare

* refactor SendQueryGetResult and remove unneeded CC* functions

* avoid extra strlen calls, and add a test case for SQLPrepare->SQLExecDirect

* remove extra allocation/deallocation in API_Prepare, add test cases for SQLPrepare->SQLDescribeCol

* remove commented code, call SC_initialize_and_recycle when returning SQL_ERROR

Co-authored-by: Jerry Leung <[email protected]>

* AT-819 - Integration test result log files are truncated (#76)

* Resolve the x86 and x64 drivers and add registry for github actions

* Fixed new line problem

* Revised

* Revised

* Fixed Win32 reg

* Test

* test

* Test

* Fixed connection error log

* Refactored

* Fixed integration test cases

* Renames files to remove ts_ and es_prefixes.

* Changed ES_TYPE_CHAR to SQL_CHAR

* Changed ES_TYPE to TS_TYPE

* Renamed ES_ variables to TS_

* Removed commented code

* Changes to parse_result for refactoring sqlPrepare

* Address code review

* Removed Semaphore files since they are no longer used.

* Fixed macOS

* Update README.md

* Fix mac build (#79)

* Fix

* Added quotation mark

* Update README.md

* Update client.cpp

Since the number of columns doesn't change per row, only call SQLNumResultCols if it isn't set.

* Update CHANGELOG.md

* Update CMakeLists.txt

* Update helper.cpp

* Update README.md (#85)

Added information for compiling in Visual Studio.

* At 735 Improve test cases for SQLGetDescField (#83)

* revise error message

* improve tests for SQLGetDescField

* add assertion on return value for SQLGetDescField

* uncomment test cases

* add Kyle to reviewers

* revise SQLGetTypeInfo tests

* simplify type conversion test cases

* simplify result integration tests

* fix win32 build issue, remove unused tests from elasticsearch

* refactor SQLBindCol test to remove duplicate code

* adjust oridinal position for SQLColumns (#90)

* [1] Initial commit for linux support for timestream

* [1] Adding linux build workflow.

* [1] Minor updates

* [1] Fixing compielr error

* [1] Fixing pointer

* [1] Corrected last couple tests.

* [1] Adjusting string for compiler error

* [1] Fixing mac string cppcheck issue

* [1] Fixing additional plus sign

* [1] Fixing test failure

* [1] Updates from PR feedback

* [1] Small fixes for code review.

* AT 620 - Plus sign not working in connection options (#88)

* Fix connection string corrupted in Test Setup

* fix Fixture::Setup() corrupted connection string by switching std::string to std::wstring, remove percent encoding/decoding from ODBC layer, add percent encoding in AAD, use JsonValue to build Okta request body

* remove FORCE_PASSWORDE_DISPLAY so that passwords are always hidden, fix logging passwords in utf8_to_ucs2_lf

* improve github actions

* remove curly braces from log output in connection string

* add back curly braces in connection string and test in github actions

* add printf to debug

* add back removing curly in connection string

* revert change in main.yml

* use macro on esNAME type

* remove unused decoding function

* update comment

* add case insentitive substring match on key of connection string

* [1] Checking linux segfaults

* [1] Increasing output.

* [1] Adding some code for debugging

* [1] More debug info

* [1] Enabling all tests for test_odbc_results.cpp

* [1] Minor debug updates.

* [1] flist printf fix.

* [1] Checking user/secret updates

* [1] Fixing cppcheck

* [1] 32 bit enabled.

* [1] trying 32 bit hack for build.

* [1] Adjusting linux script.

* [1] Trying to fix toolchaiun for aws.

* [1] Trying to force cmake lookup

* [1] trying to remove find root

* [1] Updating target properties.

* no message

* no message

* no message

* no message

* Fix portability problems

- Fix conflict with version.h on some OSes.
- Reduce warnings about mylog.h due to ES_PRINTF_ATTRIBUTE.

* no message

* [1] Trying to force i386 toolchain

* [1] Trying to move constants

* [1] Removing printf

* [1] Checking if it is on destruction that I am segfaulting.

* [1] Adding additional define for linux

* minor release with bug fixed (#93)

* [1] Fixing warnings

* [1] Fixing test issue and warnings

* [1] Adding quote

* [1] More fixes

* [1] Testing fix for pragmas

* [1] General cleanup done across the board for tests and driver

* [1] Minor ifdef updates

* [1] fixing pragmas

* [1] Fixing build error.

* [1] More missing semicolons

* [1] Fixing more warnings

* [1] Fixing some more warnings

* [1] Fixing else

* [1] Eliminating more warnings

* [1] Adjusting pragmas

* [1] Fixing pragmas

* [`] More minor fixes

* [1] Macro fixes

* [1] Removing prafgmas that aren
t working

* Remove including qresult.h when not necessary

Don't include qresult.h in header when not needed.

* AT-800: Release row buffers as rows are consumed

* Rework SQLBindCol tests to allow fetch size

Modify the way SQLBindCol is used to properly allow binding
of multiple rows of SQL_C_CHAR data.

Fix incorrect binding of SQLLEN data that can cause a crash

Add a multirow-fetch test.

* [1] Added Linux build instructions.

* [1] Removing outdated comment.

* [1] Lowering log level to debug.

* [1] Fixing linux compiler errors.

* [1] Enabling DSN tests

* [1] Removed outdated 32-bit/64-bit bin/lib references

* [1] Adding some prints to dlg_specific.c

* [1] Minor fix for dsn.

* [1] Trying a different dsn fix.

* [1] Adding some debug printouts

* [1] Fixing build script.

* [1] Updates based on PR feedback.

* [1] DSN Debugging

* [1] ls fix.

* [1] More command fixes.

* Revert "adjust oridinal position for SQLColumns (#90)"

This reverts commit 6d3746f.

* [1] Trying etc based build.

* [1] Fixing cat print.

* Revert "adjust oridinal position for SQLColumns (#90)" (#96)

This reverts commit 6d3746f.

* [1] Minor updqtes yml to tryt to debug.

* [1] Removing mkdir

* [1] Fixing 32-bit dsn.

* [1] Fixing build script and trying to adjust misc.h

* [1] Fixed a bunch of warnings.
[2] adjusted output of installer.

* [1] Fixed a bunch more warnings and build error.

* [1] More warning fixes and also enable Werror

* [1] Removing another warning

* [1] Reverting removal and fixing warning with pragma because windows build needs it.

* [1] Fixing cppcheck error and pedantic error

* [1] more cppcheck fixes

* no message

* [1] Removing more unused functions and macros.

* [1] Removing printouts

* [1] fixing more warnings

* [1] Trying to fix warning.

* [1] Fixing linker

* [1] Trying to fix installer upload

* [1] Fixing build script

* [1] Fixing 32-bit failure and adding test for sample app
[2] Updating readme because it was kind of weird

* [1] Retrying cli build but moving so it is fail fast.

* [1] cd fix and readme updates.

* [1] Minor cli updates.

* [1] Added additional debug info

* [1] Printing errors to see if it will help debug issue with ODBCcli

* [1]\ Minor fixes

* [1] Fixing brace

* [1] More updates

* [1] Install deb so sample app can be tested.

* [1] Fixiong cppcheck

* [1] Updates to debug issue

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* final test

* [1] Bug fixes.

* [1] Removing printf spam.
[2] Fixing other issues

* [1] Fixed encoding.

* [1] Fixing query

* [1] Fixing bitwise manips
[2] Removing sample app from build script because it now works properly.

* [1] Meant to remove this in the last commit..

* [1] Minor fixes for CR.

* Update CHANGELOG.md

* AT-748/803 Add more test cases (#98)

* remove some es prefixes

* remove es prefixes

* remove more es prefixes

* remove prefixes

* return false for deprecated functions

* add test cases for SQLForeignKeys, SQLPrimaryKeys

* add test cases for remaining catalog functions

* add test cases for unsupported functions

* address review comments, remove more es prefixes, rename overloading functions

* add impl and a test case for SQLTransact

* use static_cast

* add -fPIC compiler option

* Version Update

Updated version to 0.4.0 and addressed comments in CHANGELOG.md

* Release/0.4.0 (#100)

* Update CHANGELOG.md

* Version Update

Updated version to 0.4.0 and addressed comments in CHANGELOG.md

Co-authored-by: Charlene Solonynka <[email protected]>

* add one more keyword that needs to be masked (#101)

* add one more keyword that needs to be masked

* improve hide_password()

Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: csolonynka <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: James Duong <[email protected]>
Co-authored-by: Charlene Solonynka <[email protected]>

Co-authored-by: Peng Huo <[email protected]>
Co-authored-by: Joshua <[email protected]>
Co-authored-by: Joshua Li <[email protected]>
Co-authored-by: Jordan Wilson <[email protected]>
Co-authored-by: Chloe <[email protected]>
Co-authored-by: chloe-zh <[email protected]>
Co-authored-by: Sayali Gaikawad <[email protected]>
Co-authored-by: Francesco Capponi <[email protected]>
Co-authored-by: Chen Dai <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: csolonynka <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: James Duong <[email protected]>
Co-authored-by: Charlene Solonynka <[email protected]>
affonsov added a commit that referenced this pull request Nov 16, 2022
* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit 8a04166b05161326e68c30d98ca17cdbec0df1dc.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit f89a7e9516c20924fbc6c3e6d3763f26309c5723.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 05eae8ade2c68607bd8a16bee8f60b5681ad74c6.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit 301e04524c1bfcc89db76476171714c69ca1f582.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit 74dd190fac5ef642d0d83015766fe33dfefb3489.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit 696db387de8f509d846ad6351d5cdfcc9937a514, reversing
changes made to 8d81a183bea353fef47a62e542bf3fd6f53c13ab.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit 788cad79f72a7f99ff66c5032bb1532eb71b0da5.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetadataGetSchemaName
*  add empty test function for TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* [AD-589] implement unit test for DbDatabaseSchemaMetadataGetSchemaName

* [AD-521] refactor - change case of ssh to SSH for consistency

* [AD-589] address code review comments

* rename DocumentDbConnectionGetMetaData to DocumentDbConnectionGetDatabaseMetaData

* [AD-589] change case from MetaData to Metadata to match Java method name

* [AD-589] refactor: change from metaData to metadata

changes occurred in:
* DocumentDbConnectionGetDatabaseMetadata
* DocumentDbDatabaseSchemaMetadataGetSchemaName
* TestDocumentDbConnectionGetDatabaseMetadata
* TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* Birschick bq/sync up (#21)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

* [AD-735] large dataset crash issue (#23)

* first test

* fix performance test crash

* fix performance test crash

* fix whitespace issue

* rework based on comments

* SQLPrimaryKey using JNI

* odbc test failure fix

* Revert "odbc test failure fix"

This reverts commit c75194688a0969edae20f59cbe6c55cf5eb4a4da.

* Revert "SQLPrimaryKey using JNI"

This reverts commit 02380e9e434a55a9b034da138f7d0d32d1654708.

* [AD-550] Adapt Foreign Keys (#24)

* [AD-550] JNI implementation for getImportedKeys

* [AD-550] update Pull Request Template

* added reviewees Roy Zhang and Micthell Elholm

* [AD-550] add todo note to unit test

* [AD-550] define GetImportedKeys in database_metadata.h/.cpp

* add ODBC wrapper code to the JNI call for GetImportedKeys

* [AD-550] initialize string vars to be empty string in column_metadata_query

* [AD-550] modify ForeignKeysQuery to accept 3 arguments only

* modified ForeignKeysQuery to only accept catalog, schema, and table, as other fields are not needed.

* [AD-550] update column metadata for foreign keys

* [AD-550] fix typo in primary_key_meta.h

* [AD-550] define vars for foreign key meta

* [AD-550] add getter functions for vars in foreign_key_meta.h

* [AD-550] support vars in foreign key meta to be optional

* [AD-550] add headers for boost optional

* [AD-550] add headers and constructors for foreign key meta

* added ForeignKeyMeta constructor, and copy constructor
*added ForeignKeyMeta destructor
* define ForeignKeyMetaVector
* basically, complete foreign_key_meta.h

* [AD-550] implement resultset.getSmallInt

* implement resultset.getSmallInt taking column indices or column names as parameters
* make ColumnMeta::dataType be updated with  resultSet.Get()->GetSmallInt to simplify code and readbility

* [AD-550] Add foreign_key_meta.cpp

* implemented functions:
ReadForeignKeysColumnMetaVector
ForeignKeyMeta::Read

* [AD-550] update CMakeLists to include foreign_key_meta.cpp

* [AD-550] implement MakeRequestGetForeignKeysMeta

* MakeRequestGetForeignKeysMeta calls GetImportedKeys to get Jni ResultSet object for foreign keys, and then reads the resultSet object to fill in the meta object.

* [AD-550] update ForeignKeysQuery::DataAvailable and ForeignKeysQuery::Close

* update meta object accordingly whenForeignKeysQuery::Close() is called.
* return boolean for whether data is available based on meta object

* [AD-550] implement ForeignKeysQuery::Execute and FetchNextRow

* the code for ForeignKeysQuery::Execute and ForeignKeysQuery::FetchNextRow is based on ColumnMetadataQuery::Execute and ColumnMetadataQuery::FetchNextRow

* [AD-550] fix Mac and Linux build

* remove extra qualification on GetSmallInt function

* [AD-550] implement ForeignKeysQuery::GetColumn

* had formatting changes as well

* [AD-550] JNI implementation for getImportedKeys

* [AD-550] update Pull Request Template

* added reviewees Roy Zhang and Micthell Elholm

* [AD-550] add todo note to unit test

* [AD-550] define GetImportedKeys in database_metadata.h/.cpp

* add ODBC wrapper code to the JNI call for GetImportedKeys

* [AD-550] initialize string vars to be empty string in column_metadata_query

* [AD-550] modify ForeignKeysQuery to accept 3 arguments only

* modified ForeignKeysQuery to only accept catalog, schema, and table, as other fields are not needed.

* [AD-550] update column metadata for foreign keys

* [AD-550] fix typo in primary_key_meta.h

* [AD-550] define vars for foreign key meta

* [AD-550] add getter functions for vars in foreign_key_meta.h

* [AD-550] support vars in foreign key meta to be optional

* [AD-550] add headers for boost optional

* [AD-550] add headers and constructors for foreign key meta

* added ForeignKeyMeta constructor, and copy constructor
*added ForeignKeyMeta destructor
* define ForeignKeyMetaVector
* basically, complete foreign_key_meta.h

* [AD-550] implement resultset.getSmallInt

* implement resultset.getSmallInt taking column indices or column names as parameters
* make ColumnMeta::dataType be updated with  resultSet.Get()->GetSmallInt to simplify code and readbility

* [AD-550] Add foreign_key_meta.cpp

* implemented functions:
ReadForeignKeysColumnMetaVector
ForeignKeyMeta::Read

* [AD-550] update CMakeLists to include foreign_key_meta.cpp

* [AD-550] implement MakeRequestGetForeignKeysMeta

* MakeRequestGetForeignKeysMeta calls GetImportedKeys to get Jni ResultSet object for foreign keys, and then reads the resultSet object to fill in the meta object.

* [AD-550] update ForeignKeysQuery::DataAvailable and ForeignKeysQuery::Close

* update meta object accordingly whenForeignKeysQuery::Close() is called.
* return boolean for whether data is available based on meta object

* [AD-550] implement ForeignKeysQuery::Execute and FetchNextRow

* the code for ForeignKeysQuery::Execute and ForeignKeysQuery::FetchNextRow is based on ColumnMetadataQuery::Execute and ColumnMetadataQuery::FetchNextRow

* [AD-550] fix Mac and Linux build

* remove extra qualification on GetSmallInt function

* [AD-550] implement ForeignKeysQuery::GetColumn

* had formatting changes as well

* [AD-550] update docs for foreign_keys_query.h

* [AD-550] refine SQLForeignKey call

* [AD-550] add draft foreign key test for JNI test

* [AD-550] add test tables for jni test

* [AD-550] update test TestDocumentDbDatabaseMetaDataGetImportedKeys

* update test to query virtual table jni_test_001_sub_doc

* [AD-550] add SQLForeignKeys sql api test

* [AD-550] add logs for ReadForeignKeysColumnMetaVector

* PK* variables will contain the list of foreign keys in the specified table

* [AD-550] reformat jni_test

* [AD-550] implement TestDatabaseMetaDataGetImportedKeys for java_test

* [AD-550] add test document meta_queries_test_002_with_array

* this document will be used to test SQLForeignKeys in meta_queries_test

* [AD-550] refactor TestSQLForeignKeys test

* reason: I see that `SQLCHAR empty[] = "";` is used in meta_queries_test, and I think that might be a better way of writing the parameters

* [AD-550] add test for SQLForeignKeys in meta_queries_test

tests added:
* TestGetDataWithForeignKeysReturnsOneFromLocalServer
* TestGetDataWithForeignKeysReturnsNone
* they use test table meta_queries_test_002_with_array

* [AD-550] clean up

* add doc for SQLForeignKeys
* remove comments

* [AD-550] remove commented out code

* [AD-550] remove unneeded commented out code

* [AD-550] make ODBC pass nullptr for JString catalog and schema for SQLForeignKeys

*  in getImportedKeys, null boost::optional strings will be passed as nullptr to JDBC
* make jni test and java test pass null boost::optional strings to JNI calls for getImportedKeys
* ODBC now passes boost::optional strings foreignCatalog and foreignSchema to ExecuteGetForeignKeysQuery function.

* [AD-550] add if check for sqlStrLen

* if sqlString is empty, return boost::none

* [AD-550] debug `choco install cppcheck -y` not working on GitHub Actions

* [AD-550] add tests for testing empty string parameters

* added Java test TestDatabaseMetaDataGetImportedKeysReturnsNone
* added Jni test TestDocumentDbDatabaseMetaDataGetImportedKeysReturnsNone

* [AD-550] disable cppcheck

* created [AD-752](https://bitquill.atlassian.net/browse/AD-752) to investigate it further.

* [AD-550] change the place for code doc for function SQLForeignKeys

* [AD-550] update if statement check of SqlStringToOptString

* to resolve code review comment

* [AD-550] resolve code review comment

* The sqlStrLen is an int32_t, so "!sqlStrLen" can be removed

* [AD-550] make boost optional strings constant where needed

* previously, I changed `const std::string` to `boost::optional< std::string >` in some areas, and this is now fixed by replacing the latter with `boost::optional< const std::string >`

* [AD-550] SqlStringToOptString fix

* also fixed SqlStringToConstOptString
* reason: SQL_NTS is a flag that indicates that the string passed is a null-terminated string.

* [AD-550] make tests pass null to SQLForeignKeys

* [AD-550] add test case for TestGetDataWithForeignKeysReturnsNone

*  even with the correct table name, as long as empty strings are passed as catalog/schema, SQL_NO_DATA should be returned

* [AD-550] update SqlStringToOptString

* [AD-550] update TestSQLForeignKeys to pass NULL as parameters properly

* [AD-550] move `const` out of `boost::optional< const std::string >`

* reason: `const boost::optional< std::string >` works better than `boost::optional< const std::string >`.
* this commit is to resolve code review comments

* [AD-550] add meta_queries test that passes catalog as empty string

* [AD-550] Set `fetched` to false in ForeignKeysQuery::Close()

* [AD-550] add explicit conversion to boost::optional variable initialization

* [AD-550] resolve code review comment

* remove duplicate code

* [AD-550] remove function

* removed unneeded function: SqlStringToConstOptString

* [AD-649] Add missing documentation (#29)

### Summary

[AD-649] Add missing documentation

### Description
Update ODBC driver documentation

- [x] Documentation about connections string ( Parameters description)
- [x] Documentation about DSN configuration window ( with screenshots)
- [x] Documentation how the ODBC driver works ( ODBC and JDBC integration)
- [x] Documentation what is supported ( link with JDBC driver)

### Related Issue

https://bitquill.atlassian.net/browse/AD-649

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

* [AD-735] large dataset crash issue (#74)

### Summary

ODBC driver will not run on large document tests

### Description
The performance test crashes for large document tests. 

1. The root cause is the wrong memory is passed to SQLBindCol(). The parameter TargetValuePtr is passed &cols[i][0].data_dat[i]. The i could exceed 255 for large table while its max valid value should be 254. The correct value should be 0.
2. The SQLExtendedFetch is deprecated. Replace it with SQLFetch.

### Related Issue

https://bitquill.atlassian.net/browse/AD-735

* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit 8a04166b05161326e68c30d98ca17cdbec0df1dc.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit f89a7e9516c20924fbc6c3e6d3763f26309c5723.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 05eae8ade2c68607bd8a16bee8f60b5681ad74c6.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit 301e04524c1bfcc89db76476171714c69ca1f582.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit 74dd190fac5ef642d0d83015766fe33dfefb3489.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit 696db387de8f509d846ad6351d5cdfcc9937a514, reversing
changes made to 8d81a183bea353fef47a62e542bf3fd6f53c13ab.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit 788cad79f72a7f99ff66c5032bb1532eb71b0da5.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetadataGetSchemaName
*  add empty test function for TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* [AD-589] implement unit test for DbDatabaseSchemaMetadataGetSchemaName

* [AD-521] refactor - change case of ssh to SSH for consistency

* [AD-589] address code review comments

* rename DocumentDbConnectionGetMetaData to DocumentDbConnectionGetDatabaseMetaData

* [AD-589] change case from MetaData to Metadata to match Java method name

* [AD-589] refactor: change from metaData to metadata

changes occurred in:
* DocumentDbConnectionGetDatabaseMetadata
* DocumentDbDatabaseSchemaMetadataGetSchemaName
* TestDocumentDbConnectionGetDatabaseMetadata
* TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* Birschick bq/sync up (#21)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

* [AD-735] large dataset crash issue (#23)

* first test

* fix performance test crash

* fix performance test crash

* fix whitespace issue

* rework based on comments

Co-authored-by: Andie Montoya <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: RoyZhang2022 <[email protected]>

* [AD-649] Add missing documentation (#73)

* Initial user/developer documentation
Co-authored-by: andiem-bq <[email protected]>
Co-authored-by: Bruce Irschick <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: Andie Montoya <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: RoyZhang2022 <[email protected]>

* Fix README.md (#30)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

* [AD-735] large dataset crash issue (#74)

### Summary

ODBC driver will not run on large document tests

### Description
The performance test crashes for large document tests. 

1. The root cause is the wrong memory is passed to SQLBindCol(). The parameter TargetValuePtr is passed &cols[i][0].data_dat[i]. The i could exceed 255 for large table while its max valid value should be 254. The correct value should be 0.
2. The SQLExtendedFetch is deprecated. Replace it with SQLFetch.

### Related Issue

https://bitquill.atlassian.net/browse/AD-735

* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit 8a04166b05161326e68c30d98ca17cdbec0df1dc.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit f89a7e9516c20924fbc6c3e6d3763f26309c5723.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 05eae8ade2c68607bd8a16bee8f60b5681ad74c6.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit 301e04524c1bfcc89db76476171714c69ca1f582.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit 74dd190fac5ef642d0d83015766fe33dfefb3489.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit 696db387de8f509d846ad6351d5cdfcc9937a514, reversing
changes made to 8d81a183bea353fef47a62e542bf3fd6f53c13ab.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit 788cad79f72a7f99ff66c5032bb1532eb71b0da5.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetada…
affonsov pushed a commit that referenced this pull request Nov 17, 2022
* remove some es prefixes

* remove es prefixes

* remove more es prefixes

* remove prefixes

* return false for deprecated functions

* add test cases for SQLForeignKeys, SQLPrimaryKeys

* add test cases for remaining catalog functions

* add test cases for unsupported functions

* address review comments, remove more es prefixes, rename overloading functions

* add impl and a test case for SQLTransact

* use static_cast

* add -fPIC compiler option
affonsov pushed a commit that referenced this pull request Nov 17, 2022
* Bug fix, support long type for aggregation (#522)

* Bug fix, support long type for aggregation

* change to datetime to JDBC format

* Opendistro Release 1.9.0 (#532)

* prepare odfe 1.9

* Fix all ES 7.8 compile and build errors

* Revert changes as Lombok is working now

* Update CustomExternalTestCluster.java

* Fix license headers check

* Use splitFieldsByMetadata to separate fields when calling SearchHit constructor

* More fixes for ODFE 1.9

* Remove todo statement

* Add ODFE 1.9.0 release notes

* Rename release notes to use 4 digit versions (#547)

* Revert changes ahead of develop branch in master (#551)

* Revert "Rename release notes to use 4 digit versions (#547)"

This reverts commit 33c6d3e37691e40c19d7d5892318e7ad23a82def.

* Revert "Opendistro Release 1.9.0 (#532)"

This reverts commit 254f2e0a854ba2c05aca159a9f7ff9af9867c22c.

* Revert "Bug fix, support long type for aggregation (#522)"

This reverts commit fb2ed912c8bfe50abed8fba182f2125905220cb4.

* Merge all SQL repos and adjust workflows (#549) (#554)

* merge all sql repos

* fix test and build workflows

* fix workbench and odbc path

* fix workbench and odbc path

* restructure workbench dir and fix workflows

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* revert workbench directory structure

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* update workbench workflow for release

* Delete .github/ in sql-workbench directory

* Add cypress to sql-workbench

* Sync latest ODBC commits

* Sync latest workbench commits (will add cypress in separate PR)

* Add ignored ODBC libs

* add date and time support (#560)

* add date and time support

* update doc

* update doc

* Revert "add date and time support (#560)" (#567)

This reverts commit 4b33a2ff54f288c1a2bd07911062ec5943e3fe00.

* add error details for all server communication errors (#645)

- add null check to avoid crashing if details not initialized

* Revert "add error details for all server communication errors (#645)" (#653)

This reverts commit c11125d752fdd5554608de170a3688dcd4ad544c.

* Fix download link in package description (#729)

* Change SQL plugin version from 1.11.0.1 to 1.11.0.0 (#789)

* Adding example of nested() for more complex nested queries (#799)

* Revert "Adding example of nested() for more complex nested queries (#799)" (#800)

This reverts commit aa115cc296301025189cfa6e6a76e06fa43631a2.

* Release/0.3.0 (#82)

* AT 702 Metadata Support - Implement SQLTables (#49)

Added support for SQLTables

* AT-712 MetaData Support - Implement SQLGetInfo (#50)

Add support for SQLGetInfo

* At-707 - Implement SQLColumns (#51)

* Basically works

* Refactored and add more tests

* Refactored code

* Refactored

* Refactored

* Added more test cases

* Fix macOS build errors

* Fixed macOS build

* basic structure for SQLColumns

* remove redundant variable declaration

* add integration tests for SQLColumns

* fix incomparable type in ConvertPattern

* address code review comments

Co-authored-by: Jerry Leung <[email protected]>

* AT-711 Metadata Support - Implement SQLGetTypeInfo (#52)

* Basically working

* Added integration test cases

* Adjust test cases due to necessary change for excel

* Adjust for macOS build

* Removed commented code

* Fixed build errors

* Worked around execution not concurrent problem

* Address review

* Address code review

* Update src/odfesqlodbc/es_info.cpp

Co-authored-by: Yan Wang <[email protected]>

* Address code review

* Address code review

* Fixed integration test cases

* Update src/odfesqlodbc/es_types.c

Co-authored-by: Yan Wang <[email protected]>

* Address code revie

Co-authored-by: Yan Wang <[email protected]>

* At 706 - AAD support (#53)

* get access token

* add libcurl dependency

* use http client inside aws sdk

* AAD support

* resolve base64 decoding issue

* fix format

* fix indentation

* remove demo from cmake

* revert format change

* revert format fchange

* make role arn available in AAD auth mode

* Remove password log message (#55)

* AT 749 - Improve performance of query execution (#54)

* Added QueryAsync mechanism and updated related documentation

* Manual Mac build (#58)

* make mac build manually

* add line break

* At 742 Remove integration tests from ODBC Distribution (#57)

* Removing VLD dependencies

* AT-761 - Adjust catalog test cases for testing sample timestream database (#61)

Adjust catalog test cases

* AT-761 - Added integration test cases to test Amazon Timestream sample tables (#62)

* Added integration test cases to test Amazon Timestream sample tables

* At 772 Bump SDK version to 1.8.186 (#60)

* bump aws sdk version to 1.9.19, and remove unrelated files

* change aws sdk version from 1.9.19 to 1.8.186 to resolve compiler warning

* use TS_ODBC_VERSION instead of hardcoing

* remove re-definition

* remove gibberish

* AT-705 Okta authentication support (#56)

* Okta support

* uncomment the tests

* fix build error in mac and win32

* refactor authentication

* refactor AAD and Okta authentication into their own classes

* add tests

* add connection unit tests to github actions

* remove use of SimpleAWSCredentialsProvider, just use AWSCredentials

* resolve code review comments

* make the parameter const reference for DecodeHex()

* remove constness for value returned by c_str()

* remove use of rabbit, use Aws::Utils::Json instead

* Address review comments

* remove demo files

* address code reviews

* make base64url encoding table a constant, and address nits

* make some variables static const inline

* use anonymous namespace instead of private static for some variables.

* remove duplicate var definition

* fix cppcheck warning

* AT-770 get rid of rapidjson and rabbit (#63)

* get rid of rapidjson and rabbit

* add newline at the end of file

* AT-704 Query cancel (#59)

* Query cancel

* AT-765 Refactor the connection function (#64)

* Refactored connect functions into smaller functions

* At 764 Add user agent for AWS client config (#65)

* test getting application name in mac

* get application name in windows

* add user agent in client config

* remove unused include

* add log msg

* add unit tests for GetUserAgent()

* remove unused library folder variable in cmakelist (#66)

* AT-774 throw an exception when scalar type not set or unsupported (#68)

* throw an exception when scalar type not set or unsupported

* use SC_set_error

* add statement as parameter in SendQueryGetResult

* change signature of _CC_(Metadata)_from_TSResult

* AT-769 Code to limit size of the query (#67)

* Added the size limit of queue

* AT 763 Fix Debug build to test for Windows memory leaks (#70)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* AT-773/AT-775 - add comments for functions in es_parse_result.cpp (#69)

* add comments for functions in es_parse_result.cpp

* add extra line between function signatures

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

Removed extra "and"

* AT-777 mask password (#74)

* mask password

* change Idp to IdP

* Added ODBCcli tools

* AT-818 Support Debug mode for Mac (#71)

* Added support Debug mode for macOS

* At 766 Refactor SQLPrepare to run metadata statement (#73)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* remove TSResult struct and related functions

* run metadata statement in SQLPrepare

* refactor SendQueryGetResult and remove unneeded CC* functions

* avoid extra strlen calls, and add a test case for SQLPrepare->SQLExecDirect

* remove extra allocation/deallocation in API_Prepare, add test cases for SQLPrepare->SQLDescribeCol

* remove commented code, call SC_initialize_and_recycle when returning SQL_ERROR

Co-authored-by: Jerry Leung <[email protected]>

* AT-819 - Integration test result log files are truncated (#76)

* Resolve the x86 and x64 drivers and add registry for github actions

* Fixed new line problem

* Revised

* Revised

* Fixed Win32 reg

* Test

* test

* Test

* Fixed connection error log

* Refactored

* Fixed integration test cases

* Renames files to remove ts_ and es_prefixes.

* Changed ES_TYPE_CHAR to SQL_CHAR

* Changed ES_TYPE to TS_TYPE

* Renamed ES_ variables to TS_

* Removed commented code

* Changes to parse_result for refactoring sqlPrepare

* Address code review

* Removed Semaphore files since they are no longer used.

* Fixed macOS

* Update README.md

* Fix mac build (#79)

* Fix

* Added quotation mark

* Update README.md

* Update client.cpp

Since the number of columns doesn't change per row, only call SQLNumResultCols if it isn't set.

* Update CHANGELOG.md

* Update CMakeLists.txt

* Update helper.cpp

Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Yan Wang <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>

* Release/0.4.0 (#102)

* AT 702 Metadata Support - Implement SQLTables (#49)

Added support for SQLTables

* AT-712 MetaData Support - Implement SQLGetInfo (#50)

Add support for SQLGetInfo

* At-707 - Implement SQLColumns (#51)

* Basically works

* Refactored and add more tests

* Refactored code

* Refactored

* Refactored

* Added more test cases

* Fix macOS build errors

* Fixed macOS build

* basic structure for SQLColumns

* remove redundant variable declaration

* add integration tests for SQLColumns

* fix incomparable type in ConvertPattern

* address code review comments

Co-authored-by: Jerry Leung <[email protected]>

* AT-711 Metadata Support - Implement SQLGetTypeInfo (#52)

* Basically working

* Added integration test cases

* Adjust test cases due to necessary change for excel

* Adjust for macOS build

* Removed commented code

* Fixed build errors

* Worked around execution not concurrent problem

* Address review

* Address code review

* Update src/odfesqlodbc/es_info.cpp

Co-authored-by: Yan Wang <[email protected]>

* Address code review

* Address code review

* Fixed integration test cases

* Update src/odfesqlodbc/es_types.c

Co-authored-by: Yan Wang <[email protected]>

* Address code revie

Co-authored-by: Yan Wang <[email protected]>

* At 706 - AAD support (#53)

* get access token

* add libcurl dependency

* use http client inside aws sdk

* AAD support

* resolve base64 decoding issue

* fix format

* fix indentation

* remove demo from cmake

* revert format change

* revert format fchange

* make role arn available in AAD auth mode

* Remove password log message (#55)

* AT 749 - Improve performance of query execution (#54)

* Added QueryAsync mechanism and updated related documentation

* Manual Mac build (#58)

* make mac build manually

* add line break

* At 742 Remove integration tests from ODBC Distribution (#57)

* Removing VLD dependencies

* AT-761 - Adjust catalog test cases for testing sample timestream database (#61)

Adjust catalog test cases

* AT-761 - Added integration test cases to test Amazon Timestream sample tables (#62)

* Added integration test cases to test Amazon Timestream sample tables

* At 772 Bump SDK version to 1.8.186 (#60)

* bump aws sdk version to 1.9.19, and remove unrelated files

* change aws sdk version from 1.9.19 to 1.8.186 to resolve compiler warning

* use TS_ODBC_VERSION instead of hardcoing

* remove re-definition

* remove gibberish

* AT-705 Okta authentication support (#56)

* Okta support

* uncomment the tests

* fix build error in mac and win32

* refactor authentication

* refactor AAD and Okta authentication into their own classes

* add tests

* add connection unit tests to github actions

* remove use of SimpleAWSCredentialsProvider, just use AWSCredentials

* resolve code review comments

* make the parameter const reference for DecodeHex()

* remove constness for value returned by c_str()

* remove use of rabbit, use Aws::Utils::Json instead

* Address review comments

* remove demo files

* address code reviews

* make base64url encoding table a constant, and address nits

* make some variables static const inline

* use anonymous namespace instead of private static for some variables.

* remove duplicate var definition

* fix cppcheck warning

* AT-770 get rid of rapidjson and rabbit (#63)

* get rid of rapidjson and rabbit

* add newline at the end of file

* AT-704 Query cancel (#59)

* Query cancel

* AT-765 Refactor the connection function (#64)

* Refactored connect functions into smaller functions

* At 764 Add user agent for AWS client config (#65)

* test getting application name in mac

* get application name in windows

* add user agent in client config

* remove unused include

* add log msg

* add unit tests for GetUserAgent()

* remove unused library folder variable in cmakelist (#66)

* AT-774 throw an exception when scalar type not set or unsupported (#68)

* throw an exception when scalar type not set or unsupported

* use SC_set_error

* add statement as parameter in SendQueryGetResult

* change signature of _CC_(Metadata)_from_TSResult

* AT-769 Code to limit size of the query (#67)

* Added the size limit of queue

* AT 763 Fix Debug build to test for Windows memory leaks (#70)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* AT-773/AT-775 - add comments for functions in es_parse_result.cpp (#69)

* add comments for functions in es_parse_result.cpp

* add extra line between function signatures

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

Removed extra "and"

* AT-777 mask password (#74)

* mask password

* change Idp to IdP

* Added ODBCcli tools

* AT-818 Support Debug mode for Mac (#71)

* Added support Debug mode for macOS

* At 766 Refactor SQLPrepare to run metadata statement (#73)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* remove TSResult struct and related functions

* run metadata statement in SQLPrepare

* refactor SendQueryGetResult and remove unneeded CC* functions

* avoid extra strlen calls, and add a test case for SQLPrepare->SQLExecDirect

* remove extra allocation/deallocation in API_Prepare, add test cases for SQLPrepare->SQLDescribeCol

* remove commented code, call SC_initialize_and_recycle when returning SQL_ERROR

Co-authored-by: Jerry Leung <[email protected]>

* AT-819 - Integration test result log files are truncated (#76)

* Resolve the x86 and x64 drivers and add registry for github actions

* Fixed new line problem

* Revised

* Revised

* Fixed Win32 reg

* Test

* test

* Test

* Fixed connection error log

* Refactored

* Fixed integration test cases

* Renames files to remove ts_ and es_prefixes.

* Changed ES_TYPE_CHAR to SQL_CHAR

* Changed ES_TYPE to TS_TYPE

* Renamed ES_ variables to TS_

* Removed commented code

* Changes to parse_result for refactoring sqlPrepare

* Address code review

* Removed Semaphore files since they are no longer used.

* Fixed macOS

* Update README.md

* Fix mac build (#79)

* Fix

* Added quotation mark

* Update README.md

* Update client.cpp

Since the number of columns doesn't change per row, only call SQLNumResultCols if it isn't set.

* Update CHANGELOG.md

* Update CMakeLists.txt

* Update helper.cpp

* Update README.md (#85)

Added information for compiling in Visual Studio.

* At 735 Improve test cases for SQLGetDescField (#83)

* revise error message

* improve tests for SQLGetDescField

* add assertion on return value for SQLGetDescField

* uncomment test cases

* add Kyle to reviewers

* revise SQLGetTypeInfo tests

* simplify type conversion test cases

* simplify result integration tests

* fix win32 build issue, remove unused tests from elasticsearch

* refactor SQLBindCol test to remove duplicate code

* adjust oridinal position for SQLColumns (#90)

* [1] Initial commit for linux support for timestream

* [1] Adding linux build workflow.

* [1] Minor updates

* [1] Fixing compielr error

* [1] Fixing pointer

* [1] Corrected last couple tests.

* [1] Adjusting string for compiler error

* [1] Fixing mac string cppcheck issue

* [1] Fixing additional plus sign

* [1] Fixing test failure

* [1] Updates from PR feedback

* [1] Small fixes for code review.

* AT 620 - Plus sign not working in connection options (#88)

* Fix connection string corrupted in Test Setup

* fix Fixture::Setup() corrupted connection string by switching std::string to std::wstring, remove percent encoding/decoding from ODBC layer, add percent encoding in AAD, use JsonValue to build Okta request body

* remove FORCE_PASSWORDE_DISPLAY so that passwords are always hidden, fix logging passwords in utf8_to_ucs2_lf

* improve github actions

* remove curly braces from log output in connection string

* add back curly braces in connection string and test in github actions

* add printf to debug

* add back removing curly in connection string

* revert change in main.yml

* use macro on esNAME type

* remove unused decoding function

* update comment

* add case insentitive substring match on key of connection string

* [1] Checking linux segfaults

* [1] Increasing output.

* [1] Adding some code for debugging

* [1] More debug info

* [1] Enabling all tests for test_odbc_results.cpp

* [1] Minor debug updates.

* [1] flist printf fix.

* [1] Checking user/secret updates

* [1] Fixing cppcheck

* [1] 32 bit enabled.

* [1] trying 32 bit hack for build.

* [1] Adjusting linux script.

* [1] Trying to fix toolchaiun for aws.

* [1] Trying to force cmake lookup

* [1] trying to remove find root

* [1] Updating target properties.

* no message

* no message

* no message

* no message

* Fix portability problems

- Fix conflict with version.h on some OSes.
- Reduce warnings about mylog.h due to ES_PRINTF_ATTRIBUTE.

* no message

* [1] Trying to force i386 toolchain

* [1] Trying to move constants

* [1] Removing printf

* [1] Checking if it is on destruction that I am segfaulting.

* [1] Adding additional define for linux

* minor release with bug fixed (#93)

* [1] Fixing warnings

* [1] Fixing test issue and warnings

* [1] Adding quote

* [1] More fixes

* [1] Testing fix for pragmas

* [1] General cleanup done across the board for tests and driver

* [1] Minor ifdef updates

* [1] fixing pragmas

* [1] Fixing build error.

* [1] More missing semicolons

* [1] Fixing more warnings

* [1] Fixing some more warnings

* [1] Fixing else

* [1] Eliminating more warnings

* [1] Adjusting pragmas

* [1] Fixing pragmas

* [`] More minor fixes

* [1] Macro fixes

* [1] Removing prafgmas that aren
t working

* Remove including qresult.h when not necessary

Don't include qresult.h in header when not needed.

* AT-800: Release row buffers as rows are consumed

* Rework SQLBindCol tests to allow fetch size

Modify the way SQLBindCol is used to properly allow binding
of multiple rows of SQL_C_CHAR data.

Fix incorrect binding of SQLLEN data that can cause a crash

Add a multirow-fetch test.

* [1] Added Linux build instructions.

* [1] Removing outdated comment.

* [1] Lowering log level to debug.

* [1] Fixing linux compiler errors.

* [1] Enabling DSN tests

* [1] Removed outdated 32-bit/64-bit bin/lib references

* [1] Adding some prints to dlg_specific.c

* [1] Minor fix for dsn.

* [1] Trying a different dsn fix.

* [1] Adding some debug printouts

* [1] Fixing build script.

* [1] Updates based on PR feedback.

* [1] DSN Debugging

* [1] ls fix.

* [1] More command fixes.

* Revert "adjust oridinal position for SQLColumns (#90)"

This reverts commit 08caf34.

* [1] Trying etc based build.

* [1] Fixing cat print.

* Revert "adjust oridinal position for SQLColumns (#90)" (#96)

This reverts commit 08caf34.

* [1] Minor updqtes yml to tryt to debug.

* [1] Removing mkdir

* [1] Fixing 32-bit dsn.

* [1] Fixing build script and trying to adjust misc.h

* [1] Fixed a bunch of warnings.
[2] adjusted output of installer.

* [1] Fixed a bunch more warnings and build error.

* [1] More warning fixes and also enable Werror

* [1] Removing another warning

* [1] Reverting removal and fixing warning with pragma because windows build needs it.

* [1] Fixing cppcheck error and pedantic error

* [1] more cppcheck fixes

* no message

* [1] Removing more unused functions and macros.

* [1] Removing printouts

* [1] fixing more warnings

* [1] Trying to fix warning.

* [1] Fixing linker

* [1] Trying to fix installer upload

* [1] Fixing build script

* [1] Fixing 32-bit failure and adding test for sample app
[2] Updating readme because it was kind of weird

* [1] Retrying cli build but moving so it is fail fast.

* [1] cd fix and readme updates.

* [1] Minor cli updates.

* [1] Added additional debug info

* [1] Printing errors to see if it will help debug issue with ODBCcli

* [1]\ Minor fixes

* [1] Fixing brace

* [1] More updates

* [1] Install deb so sample app can be tested.

* [1] Fixiong cppcheck

* [1] Updates to debug issue

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* final test

* [1] Bug fixes.

* [1] Removing printf spam.
[2] Fixing other issues

* [1] Fixed encoding.

* [1] Fixing query

* [1] Fixing bitwise manips
[2] Removing sample app from build script because it now works properly.

* [1] Meant to remove this in the last commit..

* [1] Minor fixes for CR.

* Update CHANGELOG.md

* AT-748/803 Add more test cases (#98)

* remove some es prefixes

* remove es prefixes

* remove more es prefixes

* remove prefixes

* return false for deprecated functions

* add test cases for SQLForeignKeys, SQLPrimaryKeys

* add test cases for remaining catalog functions

* add test cases for unsupported functions

* address review comments, remove more es prefixes, rename overloading functions

* add impl and a test case for SQLTransact

* use static_cast

* add -fPIC compiler option

* Version Update

Updated version to 0.4.0 and addressed comments in CHANGELOG.md

* Release/0.4.0 (#100)

* Update CHANGELOG.md

* Version Update

Updated version to 0.4.0 and addressed comments in CHANGELOG.md

Co-authored-by: Charlene Solonynka <[email protected]>

* add one more keyword that needs to be masked (#101)

* add one more keyword that needs to be masked

* improve hide_password()

Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: csolonynka <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: James Duong <[email protected]>
Co-authored-by: Charlene Solonynka <[email protected]>

Co-authored-by: Peng Huo <[email protected]>
Co-authored-by: Joshua <[email protected]>
Co-authored-by: Joshua Li <[email protected]>
Co-authored-by: Jordan Wilson <[email protected]>
Co-authored-by: Chloe <[email protected]>
Co-authored-by: chloe-zh <[email protected]>
Co-authored-by: Sayali Gaikawad <[email protected]>
Co-authored-by: Francesco Capponi <[email protected]>
Co-authored-by: Chen Dai <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: csolonynka <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: James Duong <[email protected]>
Co-authored-by: Charlene Solonynka <[email protected]>
affonsov added a commit that referenced this pull request Nov 17, 2022
* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit 3f58b3995262c22dc6b411cd9e41a6ea38112844.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit ae1a6047bbab9b3dc8c7869b70c8d4499c6cc7cf.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 52eef4931e022553633b0c7f5f535b26e3b4f940.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit 686aa59e7a473a4aa88e7c1e5f32264c3c71a40c.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit ff1729d46da780a3ed5654211487da066849ae95.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit b4a52d49eba77b8b409878c6d5e1b9ef2bba1750, reversing
changes made to b4d20ff9c2a39de0fe89de14fd40db107b2e98b4.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit 42dd752b23be78058f4b19c5386ac3f61281ff91.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetadataGetSchemaName
*  add empty test function for TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* [AD-589] implement unit test for DbDatabaseSchemaMetadataGetSchemaName

* [AD-521] refactor - change case of ssh to SSH for consistency

* [AD-589] address code review comments

* rename DocumentDbConnectionGetMetaData to DocumentDbConnectionGetDatabaseMetaData

* [AD-589] change case from MetaData to Metadata to match Java method name

* [AD-589] refactor: change from metaData to metadata

changes occurred in:
* DocumentDbConnectionGetDatabaseMetadata
* DocumentDbDatabaseSchemaMetadataGetSchemaName
* TestDocumentDbConnectionGetDatabaseMetadata
* TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* Birschick bq/sync up (#21)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

* [AD-735] large dataset crash issue (#23)

* first test

* fix performance test crash

* fix performance test crash

* fix whitespace issue

* rework based on comments

* SQLPrimaryKey using JNI

* odbc test failure fix

* Revert "odbc test failure fix"

This reverts commit 57043326d22b6a60bffb029959c3065202120409.

* Revert "SQLPrimaryKey using JNI"

This reverts commit f32bace48fed99164a113193673ff17ba6b1cf22.

* [AD-550] Adapt Foreign Keys (#24)

* [AD-550] JNI implementation for getImportedKeys

* [AD-550] update Pull Request Template

* added reviewees Roy Zhang and Micthell Elholm

* [AD-550] add todo note to unit test

* [AD-550] define GetImportedKeys in database_metadata.h/.cpp

* add ODBC wrapper code to the JNI call for GetImportedKeys

* [AD-550] initialize string vars to be empty string in column_metadata_query

* [AD-550] modify ForeignKeysQuery to accept 3 arguments only

* modified ForeignKeysQuery to only accept catalog, schema, and table, as other fields are not needed.

* [AD-550] update column metadata for foreign keys

* [AD-550] fix typo in primary_key_meta.h

* [AD-550] define vars for foreign key meta

* [AD-550] add getter functions for vars in foreign_key_meta.h

* [AD-550] support vars in foreign key meta to be optional

* [AD-550] add headers for boost optional

* [AD-550] add headers and constructors for foreign key meta

* added ForeignKeyMeta constructor, and copy constructor
*added ForeignKeyMeta destructor
* define ForeignKeyMetaVector
* basically, complete foreign_key_meta.h

* [AD-550] implement resultset.getSmallInt

* implement resultset.getSmallInt taking column indices or column names as parameters
* make ColumnMeta::dataType be updated with  resultSet.Get()->GetSmallInt to simplify code and readbility

* [AD-550] Add foreign_key_meta.cpp

* implemented functions:
ReadForeignKeysColumnMetaVector
ForeignKeyMeta::Read

* [AD-550] update CMakeLists to include foreign_key_meta.cpp

* [AD-550] implement MakeRequestGetForeignKeysMeta

* MakeRequestGetForeignKeysMeta calls GetImportedKeys to get Jni ResultSet object for foreign keys, and then reads the resultSet object to fill in the meta object.

* [AD-550] update ForeignKeysQuery::DataAvailable and ForeignKeysQuery::Close

* update meta object accordingly whenForeignKeysQuery::Close() is called.
* return boolean for whether data is available based on meta object

* [AD-550] implement ForeignKeysQuery::Execute and FetchNextRow

* the code for ForeignKeysQuery::Execute and ForeignKeysQuery::FetchNextRow is based on ColumnMetadataQuery::Execute and ColumnMetadataQuery::FetchNextRow

* [AD-550] fix Mac and Linux build

* remove extra qualification on GetSmallInt function

* [AD-550] implement ForeignKeysQuery::GetColumn

* had formatting changes as well

* [AD-550] JNI implementation for getImportedKeys

* [AD-550] update Pull Request Template

* added reviewees Roy Zhang and Micthell Elholm

* [AD-550] add todo note to unit test

* [AD-550] define GetImportedKeys in database_metadata.h/.cpp

* add ODBC wrapper code to the JNI call for GetImportedKeys

* [AD-550] initialize string vars to be empty string in column_metadata_query

* [AD-550] modify ForeignKeysQuery to accept 3 arguments only

* modified ForeignKeysQuery to only accept catalog, schema, and table, as other fields are not needed.

* [AD-550] update column metadata for foreign keys

* [AD-550] fix typo in primary_key_meta.h

* [AD-550] define vars for foreign key meta

* [AD-550] add getter functions for vars in foreign_key_meta.h

* [AD-550] support vars in foreign key meta to be optional

* [AD-550] add headers for boost optional

* [AD-550] add headers and constructors for foreign key meta

* added ForeignKeyMeta constructor, and copy constructor
*added ForeignKeyMeta destructor
* define ForeignKeyMetaVector
* basically, complete foreign_key_meta.h

* [AD-550] implement resultset.getSmallInt

* implement resultset.getSmallInt taking column indices or column names as parameters
* make ColumnMeta::dataType be updated with  resultSet.Get()->GetSmallInt to simplify code and readbility

* [AD-550] Add foreign_key_meta.cpp

* implemented functions:
ReadForeignKeysColumnMetaVector
ForeignKeyMeta::Read

* [AD-550] update CMakeLists to include foreign_key_meta.cpp

* [AD-550] implement MakeRequestGetForeignKeysMeta

* MakeRequestGetForeignKeysMeta calls GetImportedKeys to get Jni ResultSet object for foreign keys, and then reads the resultSet object to fill in the meta object.

* [AD-550] update ForeignKeysQuery::DataAvailable and ForeignKeysQuery::Close

* update meta object accordingly whenForeignKeysQuery::Close() is called.
* return boolean for whether data is available based on meta object

* [AD-550] implement ForeignKeysQuery::Execute and FetchNextRow

* the code for ForeignKeysQuery::Execute and ForeignKeysQuery::FetchNextRow is based on ColumnMetadataQuery::Execute and ColumnMetadataQuery::FetchNextRow

* [AD-550] fix Mac and Linux build

* remove extra qualification on GetSmallInt function

* [AD-550] implement ForeignKeysQuery::GetColumn

* had formatting changes as well

* [AD-550] update docs for foreign_keys_query.h

* [AD-550] refine SQLForeignKey call

* [AD-550] add draft foreign key test for JNI test

* [AD-550] add test tables for jni test

* [AD-550] update test TestDocumentDbDatabaseMetaDataGetImportedKeys

* update test to query virtual table jni_test_001_sub_doc

* [AD-550] add SQLForeignKeys sql api test

* [AD-550] add logs for ReadForeignKeysColumnMetaVector

* PK* variables will contain the list of foreign keys in the specified table

* [AD-550] reformat jni_test

* [AD-550] implement TestDatabaseMetaDataGetImportedKeys for java_test

* [AD-550] add test document meta_queries_test_002_with_array

* this document will be used to test SQLForeignKeys in meta_queries_test

* [AD-550] refactor TestSQLForeignKeys test

* reason: I see that `SQLCHAR empty[] = "";` is used in meta_queries_test, and I think that might be a better way of writing the parameters

* [AD-550] add test for SQLForeignKeys in meta_queries_test

tests added:
* TestGetDataWithForeignKeysReturnsOneFromLocalServer
* TestGetDataWithForeignKeysReturnsNone
* they use test table meta_queries_test_002_with_array

* [AD-550] clean up

* add doc for SQLForeignKeys
* remove comments

* [AD-550] remove commented out code

* [AD-550] remove unneeded commented out code

* [AD-550] make ODBC pass nullptr for JString catalog and schema for SQLForeignKeys

*  in getImportedKeys, null boost::optional strings will be passed as nullptr to JDBC
* make jni test and java test pass null boost::optional strings to JNI calls for getImportedKeys
* ODBC now passes boost::optional strings foreignCatalog and foreignSchema to ExecuteGetForeignKeysQuery function.

* [AD-550] add if check for sqlStrLen

* if sqlString is empty, return boost::none

* [AD-550] debug `choco install cppcheck -y` not working on GitHub Actions

* [AD-550] add tests for testing empty string parameters

* added Java test TestDatabaseMetaDataGetImportedKeysReturnsNone
* added Jni test TestDocumentDbDatabaseMetaDataGetImportedKeysReturnsNone

* [AD-550] disable cppcheck

* created [AD-752](https://bitquill.atlassian.net/browse/AD-752) to investigate it further.

* [AD-550] change the place for code doc for function SQLForeignKeys

* [AD-550] update if statement check of SqlStringToOptString

* to resolve code review comment

* [AD-550] resolve code review comment

* The sqlStrLen is an int32_t, so "!sqlStrLen" can be removed

* [AD-550] make boost optional strings constant where needed

* previously, I changed `const std::string` to `boost::optional< std::string >` in some areas, and this is now fixed by replacing the latter with `boost::optional< const std::string >`

* [AD-550] SqlStringToOptString fix

* also fixed SqlStringToConstOptString
* reason: SQL_NTS is a flag that indicates that the string passed is a null-terminated string.

* [AD-550] make tests pass null to SQLForeignKeys

* [AD-550] add test case for TestGetDataWithForeignKeysReturnsNone

*  even with the correct table name, as long as empty strings are passed as catalog/schema, SQL_NO_DATA should be returned

* [AD-550] update SqlStringToOptString

* [AD-550] update TestSQLForeignKeys to pass NULL as parameters properly

* [AD-550] move `const` out of `boost::optional< const std::string >`

* reason: `const boost::optional< std::string >` works better than `boost::optional< const std::string >`.
* this commit is to resolve code review comments

* [AD-550] add meta_queries test that passes catalog as empty string

* [AD-550] Set `fetched` to false in ForeignKeysQuery::Close()

* [AD-550] add explicit conversion to boost::optional variable initialization

* [AD-550] resolve code review comment

* remove duplicate code

* [AD-550] remove function

* removed unneeded function: SqlStringToConstOptString

* [AD-649] Add missing documentation (#29)

### Summary

[AD-649] Add missing documentation

### Description
Update ODBC driver documentation

- [x] Documentation about connections string ( Parameters description)
- [x] Documentation about DSN configuration window ( with screenshots)
- [x] Documentation how the ODBC driver works ( ODBC and JDBC integration)
- [x] Documentation what is supported ( link with JDBC driver)

### Related Issue

https://bitquill.atlassian.net/browse/AD-649

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

* [AD-735] large dataset crash issue (#74)

### Summary

ODBC driver will not run on large document tests

### Description
The performance test crashes for large document tests. 

1. The root cause is the wrong memory is passed to SQLBindCol(). The parameter TargetValuePtr is passed &cols[i][0].data_dat[i]. The i could exceed 255 for large table while its max valid value should be 254. The correct value should be 0.
2. The SQLExtendedFetch is deprecated. Replace it with SQLFetch.

### Related Issue

https://bitquill.atlassian.net/browse/AD-735

* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit 3f58b3995262c22dc6b411cd9e41a6ea38112844.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit ae1a6047bbab9b3dc8c7869b70c8d4499c6cc7cf.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 52eef4931e022553633b0c7f5f535b26e3b4f940.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit 686aa59e7a473a4aa88e7c1e5f32264c3c71a40c.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit ff1729d46da780a3ed5654211487da066849ae95.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit b4a52d49eba77b8b409878c6d5e1b9ef2bba1750, reversing
changes made to b4d20ff9c2a39de0fe89de14fd40db107b2e98b4.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit 42dd752b23be78058f4b19c5386ac3f61281ff91.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetadataGetSchemaName
*  add empty test function for TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* [AD-589] implement unit test for DbDatabaseSchemaMetadataGetSchemaName

* [AD-521] refactor - change case of ssh to SSH for consistency

* [AD-589] address code review comments

* rename DocumentDbConnectionGetMetaData to DocumentDbConnectionGetDatabaseMetaData

* [AD-589] change case from MetaData to Metadata to match Java method name

* [AD-589] refactor: change from metaData to metadata

changes occurred in:
* DocumentDbConnectionGetDatabaseMetadata
* DocumentDbDatabaseSchemaMetadataGetSchemaName
* TestDocumentDbConnectionGetDatabaseMetadata
* TestDocumentDbDatabaseSchemaMetadataGetSchemaName

* Birschick bq/sync up (#21)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

* [AD-735] large dataset crash issue (#23)

* first test

* fix performance test crash

* fix performance test crash

* fix whitespace issue

* rework based on comments

Co-authored-by: Andie Montoya <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: RoyZhang2022 <[email protected]>

* [AD-649] Add missing documentation (#73)

* Initial user/developer documentation
Co-authored-by: andiem-bq <[email protected]>
Co-authored-by: Bruce Irschick <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>

Co-authored-by: affonsoBQ <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: Andie Montoya <[email protected]>
Co-authored-by: Alina (Xi) Li <[email protected]>
Co-authored-by: RoyZhang2022 <[email protected]>

* Fix README.md (#30)

* Updating JDBC version (#72)

* [AD-370] upload odbc driver build on push to develop (#71)

* [AD-730] upload odbc driver build at push to develop

* [AD-730] update github actions to upload with v3

* [AD-730] Test artifact upload action

* temporarily comment out if statement guard to test upload-artifact github action

* [AD-730] upload performance test executable

* [AD-730] update readme

* [AD-730] upload Release folder as artifact

* our odbc needs more than just the ignite.odbc.dll to run properly

* [AD-730] update to upload artifacts for release build

* previously, I uploaded the Debug builds, but the Release build is the one that requires less dependencies.

* [AD-730] add back if statment

* add the if statement back in win-build.yml to ensure that the odbc driver performance artifact is only published when pushed to develop

* [AD-730] fix typo of performance test plan

* [AD-735] large dataset crash issue (#74)

### Summary

ODBC driver will not run on large document tests

### Description
The performance test crashes for large document tests. 

1. The root cause is the wrong memory is passed to SQLBindCol(). The parameter TargetValuePtr is passed &cols[i][0].data_dat[i]. The i could exceed 255 for large table while its max valid value should be 254. The correct value should be 0.
2. The SQLExtendedFetch is deprecated. Replace it with SQLFetch.

### Related Issue

https://bitquill.atlassian.net/browse/AD-735

* [AD-509] Update mac developer environment setup

* Adjust formatting

* Add note about llvm

* Add note about iodbc

* Update README.md

change the install options for OpenSSL, since vcpkg is a preferred option

* Update README.md

remove the WiX Toolset v4 requirement

* Update README.md

add steps for the fix for ignite-odbc-tests.profraw error in README.

* [AD-517] Remove old properties + add new properties

* remove SSL settings and add TLS checkbox on the Configuration Window

* add comments for my own work

added some comments for my own convenience. Will remove later

* fix tls checkbox on Configuration Window

fixed by updating ChildId in tlsCheckBox = CreateCheckBox

* add TlsAllowInvalidHostnames checkbox and TLS CA edit to the Configuration Window

* Update configuration.cpp

add comment to illustrate plan on what to do for the configuration window

* Update dsn_configuration_window.cpp

bugfix to make tlsCheckBox and tlsAllowInvalidHostnamesCheckBox read into the saved values

* change defaultFetchSize to fetchSize in configuration.h

* change Default DSN name to DocumentDB DSN

* add App Name, Fetch Size, Read Preference, and login timeout to configuration window

* [AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h

Files that had the change connection_string_parser.cpp, connection_string_parser.h, dsn_config.cpp, batch_query.cpp, data_query.cpp.

* [AD-522] save read preference settings

* [AD-522] remove commented out code

* [AD-522] Implement replicaSet and retryReads on Configuration Window

* [AD-517] Re-enable unit tests - WIP -  still need to cleanup

* [AD-522] add space to code lines for format consistency in configuration_window.h

* Add more unit tests

* Remove extra file

* [AD-522] Add small letter case to keep format consistency in dsn_configuration_window.h

 Add small letter case to keep format consistency in dsn_configuration_window.h
fixed one typo (Create authentication settings group box)

* Remove redundant declaration

* [AD-522] add variable definitions for SSH tunnel settings for config UI

* [AD-522] add function definition for SSH Tunnel

added SSH User, SSH Host. SSH Strict Host Key Checking, and SSH Known Hosts File onto the UI. However, the code to save the written values would be done in later commits.

* [AD-522] code draft for configuration.cpp

add draft variable definition to Enable ssh tunnel boolean value

* Revert "change defaultFetchSize to fetchSize in configuration.h"

This reverts commit 3f58b3995262c22dc6b411cd9e41a6ea38112844.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"

This reverts commit ae1a6047bbab9b3dc8c7869b70c8d4499c6cc7cf.

* [AD-517] * Change the C++ version to use to compile.

* [AD-522] change fetchSize to defaultFetchSize on configuration window for consistency with JDBC driver

* [AD-517] * Changed checks.yml so that it doesn't fail on code review errors.

* Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h""

This reverts commit 52eef4931e022553633b0c7f5f535b26e3b4f940.

* [AD-522] make TLS allow invalid hostnames checkbox enabled only when tls Check box is checked

* Revert "Revert "[AD-522] bugfix - change DefaultFetchSize to fetchSize in all related files to be consistent with configuration.h"""

This reverts commit 686aa59e7a473a4aa88e7c1e5f32264c3c71a40c.

* Improvements from review

* Updated comments

* [AD-522] save SSH values for re-read, make settings window into 2 columns

Make ssl and additional settings groups to be on the right side of the column on the configuration window. This is subject to change later.
I created the function
void DsnConfigurationWindow::RetrieveSshParameters(config::Configuration& cfg) const
to save SSH values.
The width value in the DsnConfigurationWindow constructor is doubled from 360 to 720 and added the margin value. The margins currently look imbalanced on the settings box, and will be fixed in later commits.
Make Ok button and Cancel buttons aligned with the right column
bugfix - allow the SSH strict host checking checkbox to be checked on and off by adding the case ChildId::SSH_STRICT_HOST_KEY_CHECKING_CHECK_BOX definition.

* Removed includes no longer being used in configuration.h

* Some formatting improvements

* [Ad-522] add sshEnable variable in DSN config

- added sshEnable variable definition and getter/setter for sshEnable.
- added code for parsing sshEnable in the connection string parser

* [AD-522] change from GetSshEnable to IsSshEnable for consistency

* [AD-522] comment out deprecated readPreference variable

start on transitioning from readPreferenceEdit to readPreference combo box

* [AD-522] add SSH enable checkbox, SSH private key passphrase, and SSH private key file

* add SSH Enable variable in configuration.h and configuration.cpp
* add SSH checkbox in SSH group setting
* add SSH private key file edit in SSH group setting
* add SSH private key pass phrase in SSH group setting
** SSH private key passphrase label requires double the row height due to the label being long.
* make SSH setting items disabled/enabled as SSH enable checkbox is unchecked/checked
* save SSH variables to configuration when Ok button is pressed.

* [AD-522] read_preference.h fix

* add guards to read_preference.h fix
* include read_preference.h in dsn_configuration_window.cpp
* add draft code for read preference in dsn_configuration_window.cpp

* [AD-522] update fields in configuration window

* modified order of fields in the configuration window.
- Retry reads checkbox is now in the first row under "Additional Settings".
- SSH Strict host key check is now in the last row under "Internal SSH Tunnel Settings"
- Allow invalid hostnames checkbox now is in 2nd row under "TLS/SSL settings"
* added warning sentences for Allow invalid hostnames checkbox and SSH strict host key check

* Improvements from code review + address some warnings

* Change connection _test to use hostname key instead of address

* Change connection_test to use databse key instead of schema key

* [AD-522] implement read Preference

* add SpaceToUnderscore function
* implement read Preference in Config window and save the value

* Attempt to fix windows 32 build

* [AD-522] refactor dsn_configuration_window.cpp

refactor code format; remove spaces and  unnecessary comments

* [AD-522] fix config window margins

now the config window is symmetric

* Fix formatting

* [AD-522] add HasText() function to window.h

* previously, the definition of HasText was mistakenly committed in commit ff1729d46da780a3ed5654211487da066849ae95.
* add header of HasText() to resolve building errors in origin
* update HasText() function to make code simpler

* [AD-522] make "rs0" the default value of replicaSet

* [AD-522] implement database, hostname, port fields. And disable ok button unless all required fields are filled

* implement database, hostname, port fields.
* disable ok button unless all required fields (database, hostname, port, username, password) are filled
* added boolean created to indicate whether the configuration window has been created. If has, then check for disabling/enabling the Ok button

* [AD-522] rename SSH Known Hosts File label for clarity

* [AD-522] refactor logs for retrieving TSL settings

Make the sentences align

* [AD-522] rename TLS CA File label for clarity

* change label length to the same label length as connection settings group

* [AD-522] move authorization setting fields to connection fields

reason: only username and password are authorization settings, the rest are not. We chose to put username, password in the connections group because all fields in the connections group are required.

* [AD-522] bugfix-comment out address field related code in RetrieveConnectionParameters

* [AD-522] rename sslSettings to tlsSettings and add comment for connection settings group

* [AD-522] remove protocol version from config window

* [AD-522] bug fix sshKnownHostsFile not saved when Ok button is pressed

* [AD-522] remove commented out #include headers

* [AD-522] disable  SSH Known Hosts File edit when SSH Strict Host Key Check check box is unchecked

* move SSH Strict Host Key Checking check box above SSH Known Hosts File edit in the config window

* [AD-522] refactor - remove commented out header code

* [AD-522] add comments in configuration.cpp for planning

* modify commented out example code in dsn_configuration_window.cpp for clarity

* [AD-522] change from SSL to TLS for consistency

* SSL_SETTINGS_GROUP_BOX is changed to TLS_SETTINGS_GROUP_BOX

* [AD-522] remove commented out code

Removed commented out code:
* RetrieveAuthParameters
* CreateAuthSettingsGroup
* CreateAdditionalSettingsGroup function and CreateSslSettingsGroup function for 1 column window
* protocol version - related code
* authSettingsGroupBox code

* [AD-522] remove std::auto_ptr<Window> authSettingsGroupBox;

* [AD-522] remove address field auto pointer initialization

* [AD-522] remove address field from config window constructor

* [AD-522] refactor - remove unneeded commented out code in HasText

* [AD-522] refactor - remove white spaces and update comment

* [AD-522] debug scan_method.h

* SpaceToUnderscore is called in scan_method.cpp to make reads better
* added guards to scan_method.h

* [AD-522] implement Schema group settings box

* fixed bug in dsn_config.cpp to save scanLimit correctly

* [AD-522] update readPreference default value to unknown

* removed unneeded commented out code
* removed unnecessary code to get string value on readPreference

* [AD-522] refactor - remove unnecessary comments

* [AD-522] adjust window size and additional settings group label size

* additional settings group label size is now the same as other settings group in the same column

* Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window"

This reverts commit b4a52d49eba77b8b409878c6d5e1b9ef2bba1750, reversing
changes made to b4d20ff9c2a39de0fe89de14fd40db107b2e98b4.

* [AD-522] keyboard user interface design + disable DSN empty strimg warning dialog

* make cursor go to checkboxes on the Config window and not skip them when tab key is pressed
* when DSN field is empty, Ok Button is disabled
* make default replicaSet value empty string (default is disable repliaSet)
* refactor - removed unneeded comments

* [AD-522] add end_point header to resolve build errors

end_point related code still exist in connection.cpp, so I readded the header for end_point

* Revert "Revert "Merge branch 'develop' into alinaliBQ/AD-522/config_window""

This reverts commit 42dd752b23be78058f4b19c5386ac3f61281ff91.

* [AD-522] resolve errors after merging develop branch

* GetAddresses() is deprecated, replaced it with GetHostname() and GetTcpPort() to get hostname and port number, respectively.
* replaced GetSchema() with GetSchemaName()
* removed commented out code
* refactor with dsn_configuration_window.cpp

* [AD-512] Resolve issue with missing include file.

* [AD-522] make BoolParseResult recognizable

* [AD-522] fix build errors after develop branch merge

* update schema checkbox string
* make edit row height single
* update SetTcpPort to SetPort etc
* define default value for sshEnable

* [AD-522] enable encrypt password for ssh private key passphrase

* modify refresh schema checkbox string to fit better
* remove log message for ssh private key passphrase to increase security

* [AD-521] add comments and notes for starting AD-521

* [AD-509] update readMe to include directions about saving Java bin and server directories.

* reason: ODBC JNI calls have a dependency on `jvm.dll`, as a result, the ODBC driver cannot operate properly unless the Java bin and server directories are included in the path.

* [AD-522] reduce space between ssh private key passphrase and the checkbox below

* [AD-521] define constants for Java GetSshLocalPort method call

* [AD-521] integrate code review feedback from Andie

* refactors with comment changes and log changes

* [AD-521] refactor code

* make open brace bracket start on new line for JVMException
* remove excess space

* [AD-427] Tracer Code - Limited Capability to load metadata - work-in-progress.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-427] Fix Windows build.

* [AD-522] remove space and add new line at the end of enum types

* [AD-522] add new lines at the end of Enum type files

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] add changes for Java.cpp from Bruce's AD-427 branch

* those changes are not included in the previous merge, and are now added

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-427] Fix Mac build.

* [AD-521] JNI wrapper calls to iSshTunnelActive and getSshLocalPort

* some draft comments are left to be cleaned up

* [AD-521] debug getSshLocalPort

* change function type signature from optional to int
* refactor - remove comments

* [AD-521] change return value in getSshLocalPort from boolean to a 0

* try to fix access memory issue in TestDriverManagerGetConnection

* [AD-522] resolve build errors after merge

* fix bug for schema name not correctly loaded on the config window
* removed unnecessary headers

* [AD-427] Added ResultSet.next and ResultSet.GetString()

* [AD-522] address code review comments

* change to enum class type for read_preference.h and scan_method.h
* change the way enum class objects are read
* add static cast to enum types so SetSelection function can work with it
* refactor - removed unnecessary comments
* refactor - changes code doc in connection_string_parser.h

* [AD-521] implement tests for JNI wrapper code

* test for TestDocumentDbConnectionGetSshTunnelPortSshTunnelNotActive is not yet active, need to be enabled when we can get external SSH tunnel working.
* bug fix: re-implemented DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.
connection.Get()->GetRef() is passed as first parameter because jobject is required for CallIntMethod and CallBooleanMethod.
* better JNI wrapper code is needed in the future so warnings/errors pop up when we pass jobject instead of jclass to the methods.

* [AD-521] refactor - remove comments and commented out code

* [AD-589] implement JNI method call for GetDatabaseMetadata

* define the method constant for DocumentDbConnection.getDatabaseMetadata()
* create JNI wrapper function for DocumentDbConnection.getMetaData

* [AD-589] implement unit test for DocumentDbConnection.getMetaData

* [AD-521] add calls to AutoCloseConnection in unit tests

* pass & errInfo instead of * errInfo in DocumentDbConnectionGetSshLocalPort and DocumentDbConnectionIsSshTunnelActive.

* [AD-521] remove unnecessary comment

* [AD-589] fix merge issues

* I missed this part of code when I was resolving the merge conflicts. Now they are corrected

* [AD-589] update getMetaData JNI wrapper code to pass &errInfo

* implement unit test for getMetaData

* [AD-589] implement JNI wrapper for DocumentDbDatabaseSchemaMetadataGetSchemaName

* implement Java class for
* define constant for DocumentDbDatabaseSchemaMetada…
alexey-temnikov pushed a commit that referenced this pull request Jan 14, 2023
* remove some es prefixes

* remove es prefixes

* remove more es prefixes

* remove prefixes

* return false for deprecated functions

* add test cases for SQLForeignKeys, SQLPrimaryKeys

* add test cases for remaining catalog functions

* add test cases for unsupported functions

* address review comments, remove more es prefixes, rename overloading functions

* add impl and a test case for SQLTransact

* use static_cast

* add -fPIC compiler option
alexey-temnikov pushed a commit that referenced this pull request Jan 14, 2023
* Bug fix, support long type for aggregation (#522)

* Bug fix, support long type for aggregation

* change to datetime to JDBC format

* Opendistro Release 1.9.0 (#532)

* prepare odfe 1.9

* Fix all ES 7.8 compile and build errors

* Revert changes as Lombok is working now

* Update CustomExternalTestCluster.java

* Fix license headers check

* Use splitFieldsByMetadata to separate fields when calling SearchHit constructor

* More fixes for ODFE 1.9

* Remove todo statement

* Add ODFE 1.9.0 release notes

* Rename release notes to use 4 digit versions (#547)

* Revert changes ahead of develop branch in master (#551)

* Revert "Rename release notes to use 4 digit versions (#547)"

This reverts commit 33c6d3e37691e40c19d7d5892318e7ad23a82def.

* Revert "Opendistro Release 1.9.0 (#532)"

This reverts commit 254f2e0a854ba2c05aca159a9f7ff9af9867c22c.

* Revert "Bug fix, support long type for aggregation (#522)"

This reverts commit fb2ed912c8bfe50abed8fba182f2125905220cb4.

* Merge all SQL repos and adjust workflows (#549) (#554)

* merge all sql repos

* fix test and build workflows

* fix workbench and odbc path

* fix workbench and odbc path

* restructure workbench dir and fix workflows

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* revert workbench directory structure

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* fix workbench workflow

* update workbench workflow for release

* Delete .github/ in sql-workbench directory

* Add cypress to sql-workbench

* Sync latest ODBC commits

* Sync latest workbench commits (will add cypress in separate PR)

* Add ignored ODBC libs

* add date and time support (#560)

* add date and time support

* update doc

* update doc

* Revert "add date and time support (#560)" (#567)

This reverts commit 4b33a2ff54f288c1a2bd07911062ec5943e3fe00.

* add error details for all server communication errors (#645)

- add null check to avoid crashing if details not initialized

* Revert "add error details for all server communication errors (#645)" (#653)

This reverts commit c11125d752fdd5554608de170a3688dcd4ad544c.

* Fix download link in package description (#729)

* Change SQL plugin version from 1.11.0.1 to 1.11.0.0 (#789)

* Adding example of nested() for more complex nested queries (#799)

* Revert "Adding example of nested() for more complex nested queries (#799)" (#800)

This reverts commit aa115cc296301025189cfa6e6a76e06fa43631a2.

* Release/0.3.0 (#82)

* AT 702 Metadata Support - Implement SQLTables (#49)

Added support for SQLTables

* AT-712 MetaData Support - Implement SQLGetInfo (#50)

Add support for SQLGetInfo

* At-707 - Implement SQLColumns (#51)

* Basically works

* Refactored and add more tests

* Refactored code

* Refactored

* Refactored

* Added more test cases

* Fix macOS build errors

* Fixed macOS build

* basic structure for SQLColumns

* remove redundant variable declaration

* add integration tests for SQLColumns

* fix incomparable type in ConvertPattern

* address code review comments

Co-authored-by: Jerry Leung <[email protected]>

* AT-711 Metadata Support - Implement SQLGetTypeInfo (#52)

* Basically working

* Added integration test cases

* Adjust test cases due to necessary change for excel

* Adjust for macOS build

* Removed commented code

* Fixed build errors

* Worked around execution not concurrent problem

* Address review

* Address code review

* Update src/odfesqlodbc/es_info.cpp

Co-authored-by: Yan Wang <[email protected]>

* Address code review

* Address code review

* Fixed integration test cases

* Update src/odfesqlodbc/es_types.c

Co-authored-by: Yan Wang <[email protected]>

* Address code revie

Co-authored-by: Yan Wang <[email protected]>

* At 706 - AAD support (#53)

* get access token

* add libcurl dependency

* use http client inside aws sdk

* AAD support

* resolve base64 decoding issue

* fix format

* fix indentation

* remove demo from cmake

* revert format change

* revert format fchange

* make role arn available in AAD auth mode

* Remove password log message (#55)

* AT 749 - Improve performance of query execution (#54)

* Added QueryAsync mechanism and updated related documentation

* Manual Mac build (#58)

* make mac build manually

* add line break

* At 742 Remove integration tests from ODBC Distribution (#57)

* Removing VLD dependencies

* AT-761 - Adjust catalog test cases for testing sample timestream database (#61)

Adjust catalog test cases

* AT-761 - Added integration test cases to test Amazon Timestream sample tables (#62)

* Added integration test cases to test Amazon Timestream sample tables

* At 772 Bump SDK version to 1.8.186 (#60)

* bump aws sdk version to 1.9.19, and remove unrelated files

* change aws sdk version from 1.9.19 to 1.8.186 to resolve compiler warning

* use TS_ODBC_VERSION instead of hardcoing

* remove re-definition

* remove gibberish

* AT-705 Okta authentication support (#56)

* Okta support

* uncomment the tests

* fix build error in mac and win32

* refactor authentication

* refactor AAD and Okta authentication into their own classes

* add tests

* add connection unit tests to github actions

* remove use of SimpleAWSCredentialsProvider, just use AWSCredentials

* resolve code review comments

* make the parameter const reference for DecodeHex()

* remove constness for value returned by c_str()

* remove use of rabbit, use Aws::Utils::Json instead

* Address review comments

* remove demo files

* address code reviews

* make base64url encoding table a constant, and address nits

* make some variables static const inline

* use anonymous namespace instead of private static for some variables.

* remove duplicate var definition

* fix cppcheck warning

* AT-770 get rid of rapidjson and rabbit (#63)

* get rid of rapidjson and rabbit

* add newline at the end of file

* AT-704 Query cancel (#59)

* Query cancel

* AT-765 Refactor the connection function (#64)

* Refactored connect functions into smaller functions

* At 764 Add user agent for AWS client config (#65)

* test getting application name in mac

* get application name in windows

* add user agent in client config

* remove unused include

* add log msg

* add unit tests for GetUserAgent()

* remove unused library folder variable in cmakelist (#66)

* AT-774 throw an exception when scalar type not set or unsupported (#68)

* throw an exception when scalar type not set or unsupported

* use SC_set_error

* add statement as parameter in SendQueryGetResult

* change signature of _CC_(Metadata)_from_TSResult

* AT-769 Code to limit size of the query (#67)

* Added the size limit of queue

* AT 763 Fix Debug build to test for Windows memory leaks (#70)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* AT-773/AT-775 - add comments for functions in es_parse_result.cpp (#69)

* add comments for functions in es_parse_result.cpp

* add extra line between function signatures

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

Removed extra "and"

* AT-777 mask password (#74)

* mask password

* change Idp to IdP

* Added ODBCcli tools

* AT-818 Support Debug mode for Mac (#71)

* Added support Debug mode for macOS

* At 766 Refactor SQLPrepare to run metadata statement (#73)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* remove TSResult struct and related functions

* run metadata statement in SQLPrepare

* refactor SendQueryGetResult and remove unneeded CC* functions

* avoid extra strlen calls, and add a test case for SQLPrepare->SQLExecDirect

* remove extra allocation/deallocation in API_Prepare, add test cases for SQLPrepare->SQLDescribeCol

* remove commented code, call SC_initialize_and_recycle when returning SQL_ERROR

Co-authored-by: Jerry Leung <[email protected]>

* AT-819 - Integration test result log files are truncated (#76)

* Resolve the x86 and x64 drivers and add registry for github actions

* Fixed new line problem

* Revised

* Revised

* Fixed Win32 reg

* Test

* test

* Test

* Fixed connection error log

* Refactored

* Fixed integration test cases

* Renames files to remove ts_ and es_prefixes.

* Changed ES_TYPE_CHAR to SQL_CHAR

* Changed ES_TYPE to TS_TYPE

* Renamed ES_ variables to TS_

* Removed commented code

* Changes to parse_result for refactoring sqlPrepare

* Address code review

* Removed Semaphore files since they are no longer used.

* Fixed macOS

* Update README.md

* Fix mac build (#79)

* Fix

* Added quotation mark

* Update README.md

* Update client.cpp

Since the number of columns doesn't change per row, only call SQLNumResultCols if it isn't set.

* Update CHANGELOG.md

* Update CMakeLists.txt

* Update helper.cpp

Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Yan Wang <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>

* Release/0.4.0 (#102)

* AT 702 Metadata Support - Implement SQLTables (#49)

Added support for SQLTables

* AT-712 MetaData Support - Implement SQLGetInfo (#50)

Add support for SQLGetInfo

* At-707 - Implement SQLColumns (#51)

* Basically works

* Refactored and add more tests

* Refactored code

* Refactored

* Refactored

* Added more test cases

* Fix macOS build errors

* Fixed macOS build

* basic structure for SQLColumns

* remove redundant variable declaration

* add integration tests for SQLColumns

* fix incomparable type in ConvertPattern

* address code review comments

Co-authored-by: Jerry Leung <[email protected]>

* AT-711 Metadata Support - Implement SQLGetTypeInfo (#52)

* Basically working

* Added integration test cases

* Adjust test cases due to necessary change for excel

* Adjust for macOS build

* Removed commented code

* Fixed build errors

* Worked around execution not concurrent problem

* Address review

* Address code review

* Update src/odfesqlodbc/es_info.cpp

Co-authored-by: Yan Wang <[email protected]>

* Address code review

* Address code review

* Fixed integration test cases

* Update src/odfesqlodbc/es_types.c

Co-authored-by: Yan Wang <[email protected]>

* Address code revie

Co-authored-by: Yan Wang <[email protected]>

* At 706 - AAD support (#53)

* get access token

* add libcurl dependency

* use http client inside aws sdk

* AAD support

* resolve base64 decoding issue

* fix format

* fix indentation

* remove demo from cmake

* revert format change

* revert format fchange

* make role arn available in AAD auth mode

* Remove password log message (#55)

* AT 749 - Improve performance of query execution (#54)

* Added QueryAsync mechanism and updated related documentation

* Manual Mac build (#58)

* make mac build manually

* add line break

* At 742 Remove integration tests from ODBC Distribution (#57)

* Removing VLD dependencies

* AT-761 - Adjust catalog test cases for testing sample timestream database (#61)

Adjust catalog test cases

* AT-761 - Added integration test cases to test Amazon Timestream sample tables (#62)

* Added integration test cases to test Amazon Timestream sample tables

* At 772 Bump SDK version to 1.8.186 (#60)

* bump aws sdk version to 1.9.19, and remove unrelated files

* change aws sdk version from 1.9.19 to 1.8.186 to resolve compiler warning

* use TS_ODBC_VERSION instead of hardcoing

* remove re-definition

* remove gibberish

* AT-705 Okta authentication support (#56)

* Okta support

* uncomment the tests

* fix build error in mac and win32

* refactor authentication

* refactor AAD and Okta authentication into their own classes

* add tests

* add connection unit tests to github actions

* remove use of SimpleAWSCredentialsProvider, just use AWSCredentials

* resolve code review comments

* make the parameter const reference for DecodeHex()

* remove constness for value returned by c_str()

* remove use of rabbit, use Aws::Utils::Json instead

* Address review comments

* remove demo files

* address code reviews

* make base64url encoding table a constant, and address nits

* make some variables static const inline

* use anonymous namespace instead of private static for some variables.

* remove duplicate var definition

* fix cppcheck warning

* AT-770 get rid of rapidjson and rabbit (#63)

* get rid of rapidjson and rabbit

* add newline at the end of file

* AT-704 Query cancel (#59)

* Query cancel

* AT-765 Refactor the connection function (#64)

* Refactored connect functions into smaller functions

* At 764 Add user agent for AWS client config (#65)

* test getting application name in mac

* get application name in windows

* add user agent in client config

* remove unused include

* add log msg

* add unit tests for GetUserAgent()

* remove unused library folder variable in cmakelist (#66)

* AT-774 throw an exception when scalar type not set or unsupported (#68)

* throw an exception when scalar type not set or unsupported

* use SC_set_error

* add statement as parameter in SendQueryGetResult

* change signature of _CC_(Metadata)_from_TSResult

* AT-769 Code to limit size of the query (#67)

* Added the size limit of queue

* AT 763 Fix Debug build to test for Windows memory leaks (#70)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* AT-773/AT-775 - add comments for functions in es_parse_result.cpp (#69)

* add comments for functions in es_parse_result.cpp

* add extra line between function signatures

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

* Update BUILD_INSTRUCTIONS.md

Removed extra "and"

* AT-777 mask password (#74)

* mask password

* change Idp to IdP

* Added ODBCcli tools

* AT-818 Support Debug mode for Mac (#71)

* Added support Debug mode for macOS

* At 766 Refactor SQLPrepare to run metadata statement (#73)

* Fixed for Win 64bits debug

* Added github action for win debug

* Enable memory leak detection in Visual Studio

* remove TSResult struct and related functions

* run metadata statement in SQLPrepare

* refactor SendQueryGetResult and remove unneeded CC* functions

* avoid extra strlen calls, and add a test case for SQLPrepare->SQLExecDirect

* remove extra allocation/deallocation in API_Prepare, add test cases for SQLPrepare->SQLDescribeCol

* remove commented code, call SC_initialize_and_recycle when returning SQL_ERROR

Co-authored-by: Jerry Leung <[email protected]>

* AT-819 - Integration test result log files are truncated (#76)

* Resolve the x86 and x64 drivers and add registry for github actions

* Fixed new line problem

* Revised

* Revised

* Fixed Win32 reg

* Test

* test

* Test

* Fixed connection error log

* Refactored

* Fixed integration test cases

* Renames files to remove ts_ and es_prefixes.

* Changed ES_TYPE_CHAR to SQL_CHAR

* Changed ES_TYPE to TS_TYPE

* Renamed ES_ variables to TS_

* Removed commented code

* Changes to parse_result for refactoring sqlPrepare

* Address code review

* Removed Semaphore files since they are no longer used.

* Fixed macOS

* Update README.md

* Fix mac build (#79)

* Fix

* Added quotation mark

* Update README.md

* Update client.cpp

Since the number of columns doesn't change per row, only call SQLNumResultCols if it isn't set.

* Update CHANGELOG.md

* Update CMakeLists.txt

* Update helper.cpp

* Update README.md (#85)

Added information for compiling in Visual Studio.

* At 735 Improve test cases for SQLGetDescField (#83)

* revise error message

* improve tests for SQLGetDescField

* add assertion on return value for SQLGetDescField

* uncomment test cases

* add Kyle to reviewers

* revise SQLGetTypeInfo tests

* simplify type conversion test cases

* simplify result integration tests

* fix win32 build issue, remove unused tests from elasticsearch

* refactor SQLBindCol test to remove duplicate code

* adjust oridinal position for SQLColumns (#90)

* [1] Initial commit for linux support for timestream

* [1] Adding linux build workflow.

* [1] Minor updates

* [1] Fixing compielr error

* [1] Fixing pointer

* [1] Corrected last couple tests.

* [1] Adjusting string for compiler error

* [1] Fixing mac string cppcheck issue

* [1] Fixing additional plus sign

* [1] Fixing test failure

* [1] Updates from PR feedback

* [1] Small fixes for code review.

* AT 620 - Plus sign not working in connection options (#88)

* Fix connection string corrupted in Test Setup

* fix Fixture::Setup() corrupted connection string by switching std::string to std::wstring, remove percent encoding/decoding from ODBC layer, add percent encoding in AAD, use JsonValue to build Okta request body

* remove FORCE_PASSWORDE_DISPLAY so that passwords are always hidden, fix logging passwords in utf8_to_ucs2_lf

* improve github actions

* remove curly braces from log output in connection string

* add back curly braces in connection string and test in github actions

* add printf to debug

* add back removing curly in connection string

* revert change in main.yml

* use macro on esNAME type

* remove unused decoding function

* update comment

* add case insentitive substring match on key of connection string

* [1] Checking linux segfaults

* [1] Increasing output.

* [1] Adding some code for debugging

* [1] More debug info

* [1] Enabling all tests for test_odbc_results.cpp

* [1] Minor debug updates.

* [1] flist printf fix.

* [1] Checking user/secret updates

* [1] Fixing cppcheck

* [1] 32 bit enabled.

* [1] trying 32 bit hack for build.

* [1] Adjusting linux script.

* [1] Trying to fix toolchaiun for aws.

* [1] Trying to force cmake lookup

* [1] trying to remove find root

* [1] Updating target properties.

* no message

* no message

* no message

* no message

* Fix portability problems

- Fix conflict with version.h on some OSes.
- Reduce warnings about mylog.h due to ES_PRINTF_ATTRIBUTE.

* no message

* [1] Trying to force i386 toolchain

* [1] Trying to move constants

* [1] Removing printf

* [1] Checking if it is on destruction that I am segfaulting.

* [1] Adding additional define for linux

* minor release with bug fixed (#93)

* [1] Fixing warnings

* [1] Fixing test issue and warnings

* [1] Adding quote

* [1] More fixes

* [1] Testing fix for pragmas

* [1] General cleanup done across the board for tests and driver

* [1] Minor ifdef updates

* [1] fixing pragmas

* [1] Fixing build error.

* [1] More missing semicolons

* [1] Fixing more warnings

* [1] Fixing some more warnings

* [1] Fixing else

* [1] Eliminating more warnings

* [1] Adjusting pragmas

* [1] Fixing pragmas

* [`] More minor fixes

* [1] Macro fixes

* [1] Removing prafgmas that aren
t working

* Remove including qresult.h when not necessary

Don't include qresult.h in header when not needed.

* AT-800: Release row buffers as rows are consumed

* Rework SQLBindCol tests to allow fetch size

Modify the way SQLBindCol is used to properly allow binding
of multiple rows of SQL_C_CHAR data.

Fix incorrect binding of SQLLEN data that can cause a crash

Add a multirow-fetch test.

* [1] Added Linux build instructions.

* [1] Removing outdated comment.

* [1] Lowering log level to debug.

* [1] Fixing linux compiler errors.

* [1] Enabling DSN tests

* [1] Removed outdated 32-bit/64-bit bin/lib references

* [1] Adding some prints to dlg_specific.c

* [1] Minor fix for dsn.

* [1] Trying a different dsn fix.

* [1] Adding some debug printouts

* [1] Fixing build script.

* [1] Updates based on PR feedback.

* [1] DSN Debugging

* [1] ls fix.

* [1] More command fixes.

* Revert "adjust oridinal position for SQLColumns (#90)"

This reverts commit 8efe672.

* [1] Trying etc based build.

* [1] Fixing cat print.

* Revert "adjust oridinal position for SQLColumns (#90)" (#96)

This reverts commit 8efe672.

* [1] Minor updqtes yml to tryt to debug.

* [1] Removing mkdir

* [1] Fixing 32-bit dsn.

* [1] Fixing build script and trying to adjust misc.h

* [1] Fixed a bunch of warnings.
[2] adjusted output of installer.

* [1] Fixed a bunch more warnings and build error.

* [1] More warning fixes and also enable Werror

* [1] Removing another warning

* [1] Reverting removal and fixing warning with pragma because windows build needs it.

* [1] Fixing cppcheck error and pedantic error

* [1] more cppcheck fixes

* no message

* [1] Removing more unused functions and macros.

* [1] Removing printouts

* [1] fixing more warnings

* [1] Trying to fix warning.

* [1] Fixing linker

* [1] Trying to fix installer upload

* [1] Fixing build script

* [1] Fixing 32-bit failure and adding test for sample app
[2] Updating readme because it was kind of weird

* [1] Retrying cli build but moving so it is fail fast.

* [1] cd fix and readme updates.

* [1] Minor cli updates.

* [1] Added additional debug info

* [1] Printing errors to see if it will help debug issue with ODBCcli

* [1]\ Minor fixes

* [1] Fixing brace

* [1] More updates

* [1] Install deb so sample app can be tested.

* [1] Fixiong cppcheck

* [1] Updates to debug issue

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* final test

* [1] Bug fixes.

* [1] Removing printf spam.
[2] Fixing other issues

* [1] Fixed encoding.

* [1] Fixing query

* [1] Fixing bitwise manips
[2] Removing sample app from build script because it now works properly.

* [1] Meant to remove this in the last commit..

* [1] Minor fixes for CR.

* Update CHANGELOG.md

* AT-748/803 Add more test cases (#98)

* remove some es prefixes

* remove es prefixes

* remove more es prefixes

* remove prefixes

* return false for deprecated functions

* add test cases for SQLForeignKeys, SQLPrimaryKeys

* add test cases for remaining catalog functions

* add test cases for unsupported functions

* address review comments, remove more es prefixes, rename overloading functions

* add impl and a test case for SQLTransact

* use static_cast

* add -fPIC compiler option

* Version Update

Updated version to 0.4.0 and addressed comments in CHANGELOG.md

* Release/0.4.0 (#100)

* Update CHANGELOG.md

* Version Update

Updated version to 0.4.0 and addressed comments in CHANGELOG.md

Co-authored-by: Charlene Solonynka <[email protected]>

* add one more keyword that needs to be masked (#101)

* add one more keyword that needs to be masked

* improve hide_password()

Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: csolonynka <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: James Duong <[email protected]>
Co-authored-by: Charlene Solonynka <[email protected]>

Co-authored-by: Peng Huo <[email protected]>
Co-authored-by: Joshua <[email protected]>
Co-authored-by: Joshua Li <[email protected]>
Co-authored-by: Jordan Wilson <[email protected]>
Co-authored-by: Chloe <[email protected]>
Co-authored-by: chloe-zh <[email protected]>
Co-authored-by: Sayali Gaikawad <[email protected]>
Co-authored-by: Francesco Capponi <[email protected]>
Co-authored-by: Chen Dai <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: csolonynka <[email protected]>
Co-authored-by: Jerry Leung <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: Lyndon Bauto <[email protected]>
Co-authored-by: James Duong <[email protected]>
Co-authored-by: Charlene Solonynka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants