A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/connection__string__parse_8c.html below:

NCBI C++ ToolKit: src/dbapi/driver/ftds14/freetds/odbc/unittests/connection_string_parse.c File Reference

#include "common.h"
#include "freetds/odbc.h"
#include <freetds/test_assert.h>

Go to the source code of this file.

Go to the SVN repository for this file.

static void  assert_equal_dstr (DSTR a, const char *b)   static void  assert_equal_str (TDS_PARSED_PARAM param, const char *b)   static void  test_common (const char *name, const char *connect_string, check_func_t *check_func)   static void  simple_string_check (TDSLOGIN *login, TDS_PARSED_PARAM *parsed_params)   static void  simple_string (void)   static void  simple_escaped_string_check (TDSLOGIN *login, TDS_PARSED_PARAM *parsed_params)   static void  simple_escaped_string (void)   static void  test_special_symbols_check (TDSLOGIN *login, TDS_PARSED_PARAM *parsed_params)   static void  test_special_symbols (void)   static void  password_contains_curly_braces_check (TDSLOGIN *login, TDS_PARSED_PARAM *parsed_params)   static void  password_contains_curly_braces (void)   static void  password_contains_curly_braces_and_separator_check (TDSLOGIN *login, TDS_PARSED_PARAM *parsed_params)   static void  password_contains_curly_braces_and_separator (void)   static void  password_bug_report_check (TDSLOGIN *login, TDS_PARSED_PARAM *parsed_params)   static void  password_bug_report (void)   static void  unfinished (void)   int  main (void)   ◆ CHECK #define CHECK (   name,   s  ) Value:

static const char *name ## _connect_string = s; \

static void name(void) { \

test_common(#name, name ## _connect_string, name ## _check); \

} \

Definition at line 62 of file connection_string_parse.c.

◆ CHECK_ERROR #define CHECK_ERROR (   name,   s  ) Value:

static const char *name ## _connect_string = s; \

static void name(void) { \

test_common(#name, name ## _connect_string,

NULL

); \

}

Definition at line 70 of file connection_string_parse.c.

◆ check_func_t ◆ assert_equal_dstr() ◆ assert_equal_str() ◆ main() ◆ password_bug_report() static void password_bug_report ( void  ) static ◆ password_bug_report_check() ◆ password_contains_curly_braces() static void password_contains_curly_braces ( void  ) static ◆ password_contains_curly_braces_and_separator() static void password_contains_curly_braces_and_separator ( void  ) static ◆ password_contains_curly_braces_and_separator_check() ◆ password_contains_curly_braces_check() ◆ simple_escaped_string() static void simple_escaped_string ( void  ) static ◆ simple_escaped_string_check() ◆ simple_string() static void simple_string ( void  ) static ◆ simple_string_check() ◆ test_common()

Definition at line 27 of file connection_string_parse.c.

References assert, exit(), locale, login, NULL, _sql_errors::num_errors, odbc_errs_reset(), ODBC_PARAM_SIZE, odbc_parse_connect_string(), tds_alloc_locale, tds_alloc_login, tds_free_locale, tds_free_login, tds_init_login, and tds_set_language.

◆ test_special_symbols() static void test_special_symbols ( void  ) static ◆ test_special_symbols_check() ◆ unfinished() static void unfinished ( void  ) static ◆ password_bug_report_connect_string const char* password_bug_report_connect_string = "Driver=FreeTDS;Server=1.2.3.4;Port=1433;Database=test;uid=test_user;pwd={p@ssw0rd}" static

Definition at line 127 of file connection_string_parse.c.

◆ password_contains_curly_braces_and_separator_connect_string const char* password_contains_curly_braces_and_separator_connect_string = "DRIVER={libtdsodbc.so};SERVER={127.0.0.1};PORT={1337};UID={test_username};PWD={test{}};_password};DATABASE={test_db};ClientCharset={UTF-8};" static

Definition at line 117 of file connection_string_parse.c.

◆ password_contains_curly_braces_connect_string ◆ simple_escaped_string_connect_string const char* simple_escaped_string_connect_string = "DRIVER={libtdsodbc.so};SERVER={127.0.0.1};PORT={1337};UID={test_username};PWD={test_password};DATABASE={test_db};ClientCharset={UTF-8};" static

Definition at line 87 of file connection_string_parse.c.

◆ simple_string_connect_string ◆ test_special_symbols_connect_string const char* test_special_symbols_connect_string = "DRIVER={libtdsodbc.so};SERVER={127.0.0.1};PORT={1337};UID={test_username};PWD={[]{}}(),;?*=!@};DATABASE={test_db};ClientCharset={UTF-8};" static

Definition at line 97 of file connection_string_parse.c.

◆ unfinished_connect_string

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4