Feature/sangshuduo/td 5844 cmdline parameters align (#7832)
* [TD-5844]<feature>: make cmd line parameter similar. * fix test case align with taosdemo change. * fix windows stack overflow issue. * fix mac compile error. * fix taosdemo cmdline parameter in tests/pytest/tools/taosdemoAllTest/NanoTestCase/taosdemoTestSupportNanoInsert.py * fix windows compiler options. * make taos.exe use mysql style password input. * make taos shell and taosdump use mysql style password input. * determine scanf return value. * make console echo off during password input. * use one macro to define password length. * fix --password. change taos shell '-z' for timezone * fix password echo on darwin.
This commit is contained in:
parent
391e5639d2
commit
70a6f00c9c
|
@ -98,6 +98,7 @@ void shellParseArgument(int argc, char *argv[], SShellArguments *arguments) {
|
||||||
tstrncpy(g_password, (char *)(argv[i] + 2), SHELL_MAX_PASSWORD_LEN);
|
tstrncpy(g_password, (char *)(argv[i] + 2), SHELL_MAX_PASSWORD_LEN);
|
||||||
}
|
}
|
||||||
arguments->password = g_password;
|
arguments->password = g_password;
|
||||||
|
arguments->is_use_passwd = true;
|
||||||
strcpy(argv[i], "");
|
strcpy(argv[i], "");
|
||||||
argc -= 1;
|
argc -= 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,6 @@ void taosCloseDll(void *handle) {
|
||||||
|
|
||||||
int taosSetConsoleEcho(bool on)
|
int taosSetConsoleEcho(bool on)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
#define ECHOFLAGS (ECHO | ECHOE | ECHOK | ECHONL)
|
#define ECHOFLAGS (ECHO | ECHOE | ECHOK | ECHONL)
|
||||||
int err;
|
int err;
|
||||||
struct termios term;
|
struct termios term;
|
||||||
|
@ -52,7 +51,6 @@ int taosSetConsoleEcho(bool on)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue