提交 7d332df5 编写于 作者: F freemine

typo correction

上级 bf927e73
...@@ -290,20 +290,20 @@ static iconv_t sql_get_w2c(sql_t *sql) { ...@@ -290,20 +290,20 @@ static iconv_t sql_get_w2c(sql_t *sql) {
// static const char* tsdb_conn_conv_server_to_wchars(conn_t *conn, stack_buffer_t *buffer, const char *src, size_t len); // static const char* tsdb_conn_conv_server_to_wchars(conn_t *conn, stack_buffer_t *buffer, const char *src, size_t len);
// //
// static iconv_t sql_get_u2c(sql_t *sql) { // static iconv_t sql_get_u2c(sql_t *sql) {
if (sql->u2c == (iconv_t)-1) { // if (sql->u2c == (iconv_t)-1) {
sql->u2c = iconv_open("UTF-8", "UCS-4LE"); // sql->u2c = iconv_open("UTF-8", "UCS-4LE");
} // }
//
return sql->u2c; // return sql->u2c;
} // }
//
static iconv_t sql_get_u2w(sql_t *sql) { // static iconv_t sql_get_u2w(sql_t *sql) {
if (sql->u2w == (iconv_t)-1) { // if (sql->u2w == (iconv_t)-1) {
sql->u2w = iconv_open("UCS-2LE", "UCS-4LE"); // sql->u2w = iconv_open("UCS-2LE", "UCS-4LE");
} // }
//
return sql->u2w; // return sql->u2w;
} // }
static SQLRETURN doSQLAllocEnv(SQLHENV *EnvironmentHandle) static SQLRETURN doSQLAllocEnv(SQLHENV *EnvironmentHandle)
{ {
...@@ -2165,7 +2165,7 @@ static SQLRETURN doSQLDriverConnect( ...@@ -2165,7 +2165,7 @@ static SQLRETURN doSQLDriverConnect(
return SQL_ERROR; return SQL_ERROR;
} }
NORM_STR_LENGTH(conn, szConnStrIn, cbConnStrIn) NORM_STR_LENGTH(conn, szConnStrIn, cbConnStrIn);
// DSN=<dsn>; UID=<uid>; PWD=<pwd> // DSN=<dsn>; UID=<uid>; PWD=<pwd>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册