Searched refs:data_source (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_driver.c348 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars);
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c654 php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, 3);
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_driver.c441 if (strchr(dbh->data_source, ';')) {
448 if (dbh->username && *dbh->username && !strstr(dbh->data_source, "uid")
449 && !strstr(dbh->data_source, "UID")) {
451 spprintf(&dsn, 0, "%s;UID=%s;PWD=%s", dbh->data_source, dbh->username, dbh->password);
452 pefree((char*)dbh->data_source, dbh->is_persistent);
453 dbh->data_source = dsn;
456 rc = SQLDriverConnect(H->dbc, NULL, (char*)dbh->data_source, strlen(dbh->data_source),
460 rc = SQLConnect(H->dbc, (char*)dbh->data_source, SQL_NTS, dbh->username, SQL_NTS, dbh->password, SQL_NTS);
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_driver.c798 filename = make_filename_safe(dbh->data_source);
803 dbh->data_source);
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h471 const char *data_source; member in struct:_pdo_dbh_t
674 PDO_API int php_pdo_parse_data_source(const char *data_source,
H A Dpdo.c207 PDO_API int php_pdo_parse_data_source(const char *data_source, zend_ulong data_source_len, struct pdo_data_src_parser *parsed, int nparams) /* {{{ */ argument
221 if (data_source[i] == '\0') {
225 if (data_source[i] != '=') {
236 if (data_source[i] == '\0') {
240 if (data_source[i] == ';') {
241 if ((i + 1 >= data_source_len) || data_source[i+1] != ';') {
260 if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\0') {
267 parsed[j].optval = estrndup(data_source + valstart, semi - valstart - n_semicolumns);
270 const char *orig_val = data_source + valstart;
296 while (i < data_source_len && isspace(data_source[
[all...]
H A Dpdo_dbh.c202 char *data_source; local
214 "s|s!s!a!", &data_source, &data_source_len,
220 colon = strchr(data_source, ':');
226 snprintf(alt_dsn, sizeof(alt_dsn), "pdo.dsn.%s", data_source);
232 data_source = ini_dsn;
233 colon = strchr(data_source, ':');
241 if (!strncmp(data_source, "uri:", sizeof("uri:")-1)) {
243 data_source = dsn_from_uri(data_source + sizeof("uri:")-1, alt_dsn, sizeof(alt_dsn));
244 if (!data_source) {
[all...]
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c1208 e = (char *) dbh->data_source + strlen(dbh->data_source);
1209 p = (char *) dbh->data_source;
1243 spprintf(&conn_str, 0, "%s user=%s password=%s connect_timeout=%pd", dbh->data_source, dbh->username, tmp_pass, connect_timeout);
1245 spprintf(&conn_str, 0, "%s user=%s connect_timeout=%pd", dbh->data_source, dbh->username, connect_timeout);
1247 spprintf(&conn_str, 0, "%s password=%s connect_timeout=%pd", dbh->data_source, tmp_pass, connect_timeout);
1249 spprintf(&conn_str, 0, "%s connect_timeout=%pd", (char *) dbh->data_source, connect_timeout);

Completed in 16 milliseconds