|
|
| version 1.1, 2001/07/23 13:59:52 | version 1.2, 2001/07/25 12:46:45 |
|---|---|
| Line 118 public: | Line 118 public: |
| it's already UNTAINT_TIMES_BIGGER | it's already UNTAINT_TIMES_BIGGER |
| */ | */ |
| memcpy(to, from, length);//todo: ' -> '' | // ' -> '' |
| return length; | unsigned int result=length; |
| while(length--) { | |
| if(*from=='\'') | |
| *to++='\''; | |
| *to++=*from++; | |
| } | |
| return result; | |
| } | } |
| void query( | void query( |
| SQL_Driver_services& services, void *connection, | SQL_Driver_services& services, void *connection, |
| Line 175 public: | Line 181 public: |
| handlers.add_row_cell(ptr, size); | handlers.add_row_cell(ptr, size); |
| } | } |
| } | } |
| rs.MoveNext(); | rs.MoveNext(); row++; |
| row++; | |
| } | } |
| rs.Close(); | rs.Close(); |
| } else { | } else { |
| // empty result | db->ExecuteSQL(statement); |
| } | } |
| } | } |
| CATCH_ALL (e) { | CATCH_ALL (e) { |