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

version» Context lines:

pike.git/lib/modules/Sql.pmod/mysql.pike:45:   //! @item String types   //! All string types are returned as pike strings. The MySQL glue   //! can handle charset conversions for text strings - see   //! @[set_charset] and @[set_unicode_decode_mode].   //!   //! @enddl   //!   //! @endsection      #pike __REAL_VERSION__ + #require constant(Mysql.mysql)    - // Cannot dump this since the #if constant(...) check below may depend - // on the presence of system libs at runtime. + // Cannot dump this since the #require check may depend on the + // presence of system libs at runtime.   constant dont_dump_program = 1;    - #if constant(Mysql.mysql) -  +    inherit Mysql.mysql;      #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(replace (sprintf ("%O", this), "%", "%%") + ": " + X)   #else
pike.git/lib/modules/Sql.pmod/mysql.pike:938: Inside #if !constant (Mysql.mysql.HAVE_MYSQL_FIELD_CHARSETNR)
   predef::error ("Unicode decode mode not supported - "    "compiled with MySQL client library < 4.1.0.\n");   #endif       } else {    ::create(host||"", database||"", user||"", password||"");       update_unicode_encode_mode_from_charset ("latin1");    }   } -  - #else - constant this_program_does_not_exist=1; - #endif /* constant(Mysql.mysql) */ +