--- parser3/src/sql/mysql/Attic/parser3mysql.C 2001/04/05 20:01:27 1.11 +++ parser3/src/sql/mysql/Attic/parser3mysql.C 2001/04/09 14:02:02 1.13 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3mysql.C,v 1.11 2001/04/05 20:01:27 paf Exp $ + $Id: parser3mysql.C,v 1.13 2001/04/09 14:02:02 paf Exp $ */ #include @@ -88,7 +88,6 @@ public: void rollback(void *connection) {} bool ping(void *connection) { - return false; return mysql_ping((MYSQL *)connection)==0; } @@ -121,9 +120,9 @@ public: memcpy(cur, astatement, statement_size); cur+=statement_size; cur+=sprintf(cur, " limit "); if(offset) - cur+=snprintf(cur, MAX_NUMBER+1, "%lu,", offset); + cur+=snprintf(cur, MAX_NUMBER+1, "%u,", offset); if(limit) - cur+=snprintf(cur, MAX_NUMBER, "%lu", limit); + cur+=snprintf(cur, MAX_NUMBER, "%u", limit); statement=statement_limited; } else statement=astatement;