@@ -730,19 +730,19 @@ copyConnAttributes(ConnInfo *ci, const char *attribute, const char *value)
730
730
else if (stricmp (attribute , INI_SECRET_ID ) == 0 )
731
731
STRCPY_FIXED (ci -> secret_id , value );
732
732
else if (stricmp (attribute , INI_LIMITLESS_ENABLED ) == 0 )
733
- ci -> limitless_enabled = atoi (value );
733
+ ci -> limitless_enabled = pg_atoi (value );
734
734
else if (stricmp (attribute , INI_LIMITLESS_MODE ) == 0 )
735
735
STRCPY_FIXED (ci -> limitless_mode , value );
736
736
else if (stricmp (attribute , INI_LIMITLESS_MONITOR_INTERVAL_MS ) == 0 )
737
- ci -> limitless_monitor_interval_ms = atoi (value );
737
+ ci -> limitless_monitor_interval_ms = pg_atoi (value );
738
738
else if (stricmp (attribute , INI_LIMITLESS_SERVICE_ID ) == 0 )
739
739
STRCPY_FIXED (ci -> limitless_service_id , value );
740
740
else if (stricmp (attribute , INI_LOGDIR ) == 0 )
741
741
STRCPY_FIXED (ci -> log_dir , value );
742
742
else if (stricmp (attribute , INI_RDSLOGGINGENABLED ) == 0 )
743
- ci -> rds_logging_enabled = atoi (value );
743
+ ci -> rds_logging_enabled = pg_atoi (value );
744
744
else if (stricmp (attribute , INI_RDSLOGTHRESHOLD ) == 0 )
745
- ci -> rds_log_threshold = atoi (value );
745
+ ci -> rds_log_threshold = pg_atoi (value );
746
746
else if (stricmp (attribute , INI_READONLY ) == 0 || stricmp (attribute , ABBR_READONLY ) == 0 )
747
747
STRCPY_FIXED (ci -> onlyread , value );
748
748
else if (stricmp (attribute , INI_PROTOCOL ) == 0 || stricmp (attribute , ABBR_PROTOCOL ) == 0 )
@@ -1336,21 +1336,21 @@ MYLOG(MIN_LOG_LEVEL, "drivername=%s\n", drivername);
1336
1336
if (SQLGetPrivateProfileString (DSN , INI_CLUSTER_ID , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1337
1337
STRCPY_FIXED (ci -> cluster_id , temp );
1338
1338
if (SQLGetPrivateProfileString (DSN , INI_ENABLE_CLUSTER_FAILOVER , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1339
- ci -> enable_failover = atoi (temp );
1339
+ ci -> enable_failover = pg_atoi (temp );
1340
1340
if (SQLGetPrivateProfileString (DSN , INI_FAILOVER_MODE , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1341
1341
STRCPY_FIXED (ci -> failover_mode , temp );
1342
1342
if (SQLGetPrivateProfileString (DSN , INI_FAILOVER_TIMEOUT , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1343
- ci -> failover_timeout = atoi (temp );
1343
+ ci -> failover_timeout = pg_atoi (temp );
1344
1344
if (SQLGetPrivateProfileString (DSN , INI_HOST_PATTERN , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1345
1345
STRCPY_FIXED (ci -> host_pattern , temp );
1346
1346
if (SQLGetPrivateProfileString (DSN , INI_IGNORE_TOPOLOGY_REQUEST_RATE , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1347
- ci -> ignore_topology_refresh = atoi (temp );
1347
+ ci -> ignore_topology_refresh = pg_atoi (temp );
1348
1348
if (SQLGetPrivateProfileString (DSN , INI_READER_STRATEGY , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1349
1349
STRCPY_FIXED (ci -> reader_host_selector_strategy , temp );
1350
1350
if (SQLGetPrivateProfileString (DSN , INI_TOPOLOGY_HIGH_REFRESH_RATE , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1351
- ci -> topology_high_refresh = atoi (temp );
1351
+ ci -> topology_high_refresh = pg_atoi (temp );
1352
1352
if (SQLGetPrivateProfileString (DSN , INI_TOPOLOGY_REFRESH_RATE , NULL_STRING , temp , sizeof (temp ), ODBC_INI ) > 0 )
1353
- ci -> topology_refresh = atoi (temp );
1353
+ ci -> topology_refresh = pg_atoi (temp );
1354
1354
1355
1355
/* Allow override of odbcinst.ini parameters here */
1356
1356
get_Ci_Drivers (DSN , ODBC_INI , & (ci -> drivers ));
0 commit comments