--- pgsql.orig/src/backend/parser/parse_type.c	Tue Oct 31 10:30:22 2006
+++ pgsql/src/backend/parser/parse_type.c	Tue Oct 31 11:05:11 2006
@@ -23,6 +23,7 @@
 #include "utils/builtins.h"
 #include "utils/lsyscache.h"
 #include "utils/syscache.h"
+#include "mb/pg_wchar.h"
 
 
 /*
@@ -367,6 +368,7 @@
 	Oid			typinput;
 	Oid			typioparam;
 
+	pg_verifymbstr(string,strlen(string),0);
 	typinput = ((Form_pg_type) GETSTRUCT(tp))->typinput;
 	typioparam = getTypeIOParam(tp);
 	return OidInputFunctionCall(typinput, string,
