You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Alex Dubov <oa...@yahoo.com> on 2006/07/03 05:53:49 UTC

[PATCH]: another attempt at using binary data with apr_dbd_mysql

Warning: More testing is needed.

Short summary:
1. Use dbd_mysql_get_row with rownum == -1 to reset
queries
2. Use mysql_stmt_store_result only when random == 1
3. Don't use MYSQL_RES with prepared statements
(problems with destruction)
4. Use buckets for binary data
5. Format specifiers used:
   %* - null
   %b - bucket
   %s - string
   %c / %C - char / unsigned
   %h / %H - short / unsigned
   %d / %D - integer / unsigned
   %q / %Q - quad / unsigned
   %f / %F - float / double
6. Default field size lifted in "mostly safe" manner


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com