Changeset: 48e8d738ef63 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/48e8d738ef63
Modified Files:
clients/odbc/tests/odbcconnect.c
Branch: Aug2024
Log Message:
Make odbcconnect flags more straightforward
-d for driver, -b for browse
diffs (29 lines):
diff --git a/clients/odbc/tests/odbcconnect.c b/clients/odbc/tests/odbcconnect.c
--- a/clients/odbc/tests/odbcconnect.c
+++ b/clients/odbc/tests/odbcconnect.c
@@ -28,14 +28,13 @@ static const char *USAGE =
"Usage:\n"
" odbcconnect [-d | -c | -b ] [-v] [-u USER] [-p PASSWORD]
TARGET..\n"
"Options:\n"
- " -d Target is DSN, call SQLConnect()\n"
- " -c Target is connection string, call
SQLDriverConnect()\n"
+ " -d Target is connection string, call
SQLDriverConnect()\n"
" -b Target is connection string, call
SQLBrowseConnect()\n"
" -l List registered drivers and data sources\n"
" -u USER\n"
" -p PASSWORD\n"
" -v Be verbose\n"
- " TARGET Connection String or DSN\n";
+ " TARGET DSN or with -d and -b, Connection String\n";
typedef int (action_t)(SQLCHAR *);
@@ -84,8 +83,6 @@ main(int argc, char **argv)
for (int i = 1; i < argc; i++) {
char *arg = argv[i];
if (strcmp(arg, "-d") == 0)
- action = do_sqlconnect;
- else if (strcmp(arg, "-c") == 0)
action = do_sqldriverconnect;
else if (strcmp(arg, "-b") == 0)
action = do_sqlbrowseconnect;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]