Hello, I think that the that SQLSTATE chosen in unicode_assigned() is wrong: this not a SQL statement syntax error but more a feature not supported for the current database encoding; ERRCODE_FEATURE_NOT_SUPPORTED is more appropriate.
Maybe you could add a regression test for tid.c ? Other modifications look good to me and more difficult to test automatically. Regards, PF
