Code: Select all
CREATE DOMAIN "public"."udt_namealias" AS
varchar(16) NULL;
ALTER DOMAIN "public"."udt_namealias"
ADD CHECK ((VALUE)::text ~ '^\w.*$'::text);
Now when trying to do PgSqlDataAdapter.Update on a relevant dataset, the error "Cannot convert value" appears. No matter if CommanBuilder is used or parameters specified manualy as Varchar(16). On the same table with explicitly specified data types as Varchar everything works fine.
Can you help?