Branch: Tag:

2006-11-17

2006-11-17 18:43:18 by Martin Stjernholm <mast@lysator.liu.se>

Added support for the charsetnr column attribute. Fixed proper recognition
of binary fields in unicode decode mode by using charsetnr instead of the
binary flag (which might be set for nonbinary columns too, e.g. "VARCHAR(17)
BINARY").

Unfortunately this means that unicode decode mode is disabled if Pike is
compiled with a client lib without support for the charsetnr attribute. That
means libs before 4.1.0.

Rev: lib/modules/Sql.pmod/mysql.pike:1.34
Rev: lib/modules/Sql.pmod/sql_util.pmod:1.16
Rev: src/modules/Mysql/acconfig.h:1.18
Rev: src/modules/Mysql/configure.in:1.54
Rev: src/modules/Mysql/mysql.c:1.107
Rev: src/modules/Mysql/result.c:1.37

135:    "Month": "predef::Calendar_I.Gregorian":1, "predef::Calendar_I.Gregorian.Year":1,    "Month ": "predef::Calendar.YMD.Year.month":3,    "Mysql.mysql->big_query()": "predef::Mysql.mysql_result":1, "predef::Mysql.mysql_result.create":1, +  "Mysql.set_unicode_decode_mode": "predef::Sql.sql_util.MySQLUnicodeWrapper":1,    "Nettle.AES_State": "7.4::Crypto.aes":1, "7.4::Crypto.rijndael":1,    "Nettle.ARCFOUR_State": "7.4::Crypto.arcfour":1, "7.4::Crypto.randomness.arcfour_random":1,    "Nettle.CAST128_State": "7.4::Crypto.cast":1,
1004:   "predef::SSL.state.decrypt_packet": "Alert"   "predef::SSL.state.encrypt_packet": "Alert"   "predef::Sql.postgres.big_query": "query()" + "predef::Sql.sql_util.MySQLUnicodeWrapper": "Mysql.set_unicode_decode_mode"   "predef::Sql.tds": "TDS_ENV_CHANGE_TOKEN"   "predef::Standards.ID3.TagHeader.set_flag_unsynchronisation": "Frame"   "predef::Standards.PKCS.Signature.build_digestinfo": "Crypto.SHA"