go-pgsql
go-pgsql copied to clipboard
go-pgsql can not handle CHAR type field
CREATE TABLE test8 (aaa CHAR(10));
INSERT INTO test8 (aaa) VALUES ('aaaa');
rs,err := db.Query("SELECT aaa FROM test8")
error message:
Error: unexpected field data type
Do you need it? I'm using eg. "sname varchar(22) not null"