pike.git / lib / modules / Sql.pmod / mysql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:1:   /* -  * $Id: mysql.pike,v 1.26 2007/05/03 13:57:35 mast Exp $ +  * $Id: mysql.pike,v 1.27 2007/05/03 14:09:30 mast Exp $    *    * Glue for the Mysql-module    */      //! Implements the glue needed to access the Mysql-module from the generic   //! SQL module.      #pike __REAL_VERSION__      #if constant(Mysql.mysql)
pike.git/lib/modules/Sql.pmod/mysql.pike:16:   #define UNICODE_DECODE_MODE 1 // Unicode decode mode   #define LATIN1_UNICODE_ENCODE_MODE 2 // Unicode encode mode with latin1 charset   #define UTF8_UNICODE_ENCODE_MODE 4 // Unicode encode mode with utf8 charset      #ifdef MYSQL_CHARSET_DEBUG   #define CH_DEBUG(X...) werror("Sql.mysql: " + X)   #else   #define CH_DEBUG(X...)   #endif    - #ifndef (Mysql.mysql.HAVE_MYSQL_FIELD_CHARSETNR) + #if !constant (Mysql.mysql.HAVE_MYSQL_FIELD_CHARSETNR)   // Recognition constant to tell that the unicode decode mode would use   // the buggy MySQLBrokenUnicodeWrapper if it would be enabled through   // any of the undocumented methods.   constant unicode_decode_mode_is_broken = 1;   #endif      // Set to the above if the connection is requested to be in one of the   // unicode modes. latin1 unicode encode mode is enabled by default; it   // should be compatible with earlier pike versions.   static int utf8_mode;