]> granicus.if.org Git - php/commitdiff
Fix a typo, utf8 is 3 byte max, for us, for now
authorAndrey Hristov <andrey@php.net>
Tue, 26 May 2009 13:41:18 +0000 (13:41 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 26 May 2009 13:41:18 +0000 (13:41 +0000)
Add a another cset

ext/mysqlnd/mysqlnd_charset.c

index cbd29da83a66ebee065a5726e78ced3ad70ab5fb..3fc434cc5a6ccc80552aa6dfb272e1c44e86bfbf 100644 (file)
@@ -404,6 +404,7 @@ const MYSQLND_CHARSET mysqlnd_charsets[] =
        { 144, "ucs2", "ucs2_persian_ci", 2, 2, "", mysqlnd_mbcharlen_ucs2, check_mb_ucs2},
        { 145, "ucs2", "ucs2_esperanto_ci", 2, 2, "", mysqlnd_mbcharlen_ucs2, check_mb_ucs2},
        { 146, "ucs2", "ucs2_hungarian_ci", 2, 2, "", mysqlnd_mbcharlen_ucs2, check_mb_ucs2},
+       { 147, "ucs2", "ucs2_sinhala_ci", 2, 2, "", mysqlnd_mbcharlen_ucs2, check_mb_ucs2},
        { 192, "utf8", "utf8_general_ci", 1, 3, "", mysqlnd_mbcharlen_utf8, check_mb_utf8_valid},
        { 193, "utf8", "utf8_icelandic_ci", 1, 3, "", mysqlnd_mbcharlen_utf8, check_mb_utf8_valid},
        { 194, "utf8", "utf8_latvian_ci", 1, 3, "", mysqlnd_mbcharlen_utf8,  check_mb_utf8_valid},
@@ -423,7 +424,7 @@ const MYSQLND_CHARSET mysqlnd_charsets[] =
        { 208, "utf8", "utf8_persian_ci", 1, 3, "", mysqlnd_mbcharlen_utf8, check_mb_utf8_valid},
        { 209, "utf8", "utf8_esperanto_ci", 1, 3, "", mysqlnd_mbcharlen_utf8, check_mb_utf8_valid},
        { 210, "utf8", "utf8_hungarian_ci", 1, 3, "", mysqlnd_mbcharlen_utf8, check_mb_utf8_valid},
-       { 254, "utf8", "utf8_general_cs", 1, 2, "", mysqlnd_mbcharlen_utf8, check_mb_utf8_valid},
+       { 254, "utf8", "utf8_general_cs", 1, 3, "", mysqlnd_mbcharlen_utf8, check_mb_utf8_valid},
        {   0, NULL, NULL, 0, 0, NULL, NULL, NULL}
 };
 /* }}} */