Lines Matching refs:S
36 pdo_odbc_stmt *S = NULL; in pdo_odbc_fetch_error_func() local
40 S = (pdo_odbc_stmt*)stmt->driver_data; in pdo_odbc_fetch_error_func()
41 einfo = &S->einfo; in pdo_odbc_fetch_error_func()
65 pdo_odbc_stmt *S = NULL; in pdo_odbc_error() local
69 S = (pdo_odbc_stmt*)stmt->driver_data; in pdo_odbc_error()
71 einfo = &S->einfo; in pdo_odbc_error()
75 if (statement == SQL_NULL_HSTMT && S) { in pdo_odbc_error()
76 statement = S->stmt; in pdo_odbc_error()
147 pdo_odbc_stmt *S = ecalloc(1, sizeof(*S)); in odbc_handle_preparer() local
153 S->H = H; in odbc_handle_preparer()
154 S->assume_utf8 = H->assume_utf8; in odbc_handle_preparer()
167 efree(S); in odbc_handle_preparer()
171 rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &S->stmt); in odbc_handle_preparer()
174 efree(S); in odbc_handle_preparer()
182 stmt->driver_data = 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()
208 strcpy(H->einfo.last_err_msg, S->einfo.last_err_msg); in odbc_handle_preparer()
209 H->einfo.file = S->einfo.file; in odbc_handle_preparer()
210 H->einfo.line = S->einfo.line; in odbc_handle_preparer()
211 H->einfo.what = S->einfo.what; in odbc_handle_preparer()