2) Fix a bug about the handling of large objects.
/* commit transaction if needed */
if (!ci->drivers.use_declarefetch && CC_is_in_autocommit(stmt->hdbc))
{
- if (CC_commit(stmt->hdbc))
+ if (!CC_commit(stmt->hdbc))
{
stmt->errormsg = "Could not commit (in-line) a transaction";
stmt->errornumber = STMT_EXEC_ERROR;
{ "GBK", GBK },
{ "UHC", UHC },
{ "WIN1250", WIN1250 },
+ { "GB18030", GB18030 },
{ "OTHER", OTHER }
};
stat = 0;
}
break;
+ /*Chinese GB18030 support.Added by Bill Huang */
+ case GB18030:
+ {
+ if (stat < 2 && character > 0x80)
+ stat = 2;
+ else if (stat = 2)
+ if (character >= 0x30 && character <= 0x39)
+ stat = 3;
+ else
+ stat = 1;
+ else if (stat = 3)
+ if (character >= 0x30 && character <= 0x39)
+ stat = 1;
+ else
+ stat = 3;
+ else
+ stat = 0;
+ }
+ break;
default:
{
stat = 0;
#define GBK 30 /* GBK */
#define UHC 31 /* UHC */
#define WIN1250 32 /* windows-1250 */
+#define GB18030 33 /* GB18030 */
#define OTHER -1
#define MAX_CHARACTERSET_NAME 24