|
|
| version 1.22, 2004/05/25 07:07:28 | version 1.26, 2004/09/13 14:47:43 |
|---|---|
| Line 169 public: | Line 169 public: |
| return result; | return result; |
| } | } |
| void query(void *aconnection, | void query(void *aconnection, |
| const char *statement, unsigned long offset, unsigned long limit, | const char *statement, |
| size_t placeholders_count, Placeholder* placeholders, | |
| unsigned long offset, unsigned long limit, | |
| SQL_Driver_query_event_handlers& handlers) { | SQL_Driver_query_event_handlers& handlers) { |
| Connection& connection=*static_cast<Connection*>(aconnection); | Connection& connection=*static_cast<Connection*>(aconnection); |
| CDatabase *db=connection.db; | CDatabase *db=connection.db; |
| SQL_Driver_services& services=*connection.services; | SQL_Driver_services& services=*connection.services; |
| if(placeholders_count>0) | |
| services._throw("bind variables not supported (yet)"); | |
| // transcode from $request:charset to connect-string?client_charset | // transcode from $request:charset to connect-string?client_charset |
| if(const char* cstrClientCharset=connection.cstrClientCharset) { | if(const char* cstrClientCharset=connection.cstrClientCharset) { |
| size_t transcoded_statement_size; | size_t transcoded_statement_size; |
| Line 185 public: | Line 190 public: |
| cstrClientCharset); | cstrClientCharset); |
| } | } |
| while(isspace(*statement)) | while(isspace((unsigned char)*statement)) |
| statement++; | statement++; |
| TRY { | TRY { |
| Line 204 public: | Line 209 public: |
| CRecordset rs(db); | CRecordset rs(db); |
| TRY { | TRY { |
| rs.Open( | rs.Open( |
| CRecordset::forwardOnly, | CRecordset::forwardOnly |
| ||CRecordset::readOnly, | |
| statement, | statement, |
| CRecordset::executeDirect | CRecordset::executeDirect |
| ); | ); |
| Line 357 public: | Line 363 public: |
| v.m_pdate->hour, | v.m_pdate->hour, |
| v.m_pdate->minute, | v.m_pdate->minute, |
| v.m_pdate->second, | v.m_pdate->second, |
| v.m_pdate->fraction); | v.m_pdate->fraction/1000000); // lexical parser of INCOMING literal choked on times like hh:mm:ss.123000000 |
| str=(char*)services.malloc_atomic(length+1); | str=(char*)services.malloc_atomic(length+1); |
| memcpy(str, local_buf, length+1); | memcpy(str, local_buf, length+1); |
| break; | break; |
| Line 396 public: | Line 402 public: |
| extern "C" SQL_Driver *SQL_DRIVER_CREATE() { | extern "C" SQL_Driver *SQL_DRIVER_CREATE() { |
| return new ODBC_Driver(); | return new ODBC_Driver(); |
| } | |
| } |