Skip to content

Commit

Permalink
Fix small errors
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Nov 15, 2024
1 parent c490706 commit 0820b35
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sqlodbc/dlg_specific.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void makeConnectString(char *connect_string, const ConnInfo *ci, UWORD len) {
ci->authtype,
ci->region,
ci->tunnel_host,
(int)ci->is_serverless,
ci->is_serverless,
(int)ci->use_ssl,
(int)ci->verify_server,
(int)ci->drivers.loglevel,
Expand Down
2 changes: 1 addition & 1 deletion src/sqlodbc/dlg_specific.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extern "C" {
#define DEFAULT_DESC ""
#define DEFAULT_DSN ""
#define DEFAULT_VERIFY_SERVER 1
#define DEFAULT_IS_SERVERLESS "-1"
#define DEFAULT_IS_SERVERLESS ""

#define AUTHTYPE_NONE "NONE"
#define AUTHTYPE_BASIC "BASIC"
Expand Down
2 changes: 1 addition & 1 deletion src/sqlodbc/opensearch_communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ bool OpenSearchCommunication::isServerless() {
// Specified in DSN configuration
const std::string& is_serverless = m_rt_opts.conn.is_serverless;

if(is_serverless != DEFAULT_IS_SERVERLESS) {
if(!is_serverless.empty()) {
return std::stoi(is_serverless);
}

Expand Down
2 changes: 1 addition & 1 deletion src/sqlodbc/opensearch_odbc.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ typedef struct {
char port[SMALL_REGISTRY_LEN];
char response_timeout[SMALL_REGISTRY_LEN];
char fetch_size[SMALL_REGISTRY_LEN];
char is_serverless[SMALL_REGISTRY_LEN];;
char is_serverless[SMALL_REGISTRY_LEN];

// Authentication
char authtype[MEDIUM_REGISTRY_LEN];
Expand Down

0 comments on commit 0820b35

Please sign in to comment.