Lines Matching refs:S
38 pdo_odbc_stmt *S = NULL; in pdo_odbc_fetch_error_func() local
42 S = (pdo_odbc_stmt*)stmt->driver_data; in pdo_odbc_fetch_error_func()
43 einfo = &S->einfo; in pdo_odbc_fetch_error_func()
67 pdo_odbc_stmt *S = NULL; in pdo_odbc_error() local
71 S = (pdo_odbc_stmt*)stmt->driver_data; in pdo_odbc_error()
73 einfo = &S->einfo; in pdo_odbc_error()
77 if (statement == SQL_NULL_HSTMT && S) { in pdo_odbc_error()
78 statement = S->stmt; in pdo_odbc_error()
149 pdo_odbc_stmt *S = ecalloc(1, sizeof(*S)); in odbc_handle_preparer() local
155 S->H = H; in odbc_handle_preparer()
156 S->assume_utf8 = H->assume_utf8; in odbc_handle_preparer()
169 efree(S); in odbc_handle_preparer()
173 rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &S->stmt); in odbc_handle_preparer()
176 efree(S); in odbc_handle_preparer()
186 rc = SQLSetStmtAttr(S->stmt, SQL_ATTR_CURSOR_SCROLLABLE, (void*)SQL_SCROLLABLE, 0); in odbc_handle_preparer()
189 SQLFreeHandle(SQL_HANDLE_STMT, S->stmt); in odbc_handle_preparer()
197 rc = SQLPrepare(S->stmt, (char*)sql, SQL_NTS); in odbc_handle_preparer()
202 stmt->driver_data = S; in odbc_handle_preparer()
209 strcpy(H->einfo.last_err_msg, S->einfo.last_err_msg); in odbc_handle_preparer()
210 H->einfo.file = S->einfo.file; in odbc_handle_preparer()
211 H->einfo.line = S->einfo.line; in odbc_handle_preparer()
212 H->einfo.what = S->einfo.what; in odbc_handle_preparer()