go-pgsql icon indicating copy to clipboard operation
go-pgsql copied to clipboard

go-pgsql can not handle CHAR type field

Open notedit opened this issue 12 years ago • 1 comments

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

notedit avatar Mar 27 '12 16:03 notedit

Do you need it? I'm using eg. "sname varchar(22) not null"

brianoh avatar Oct 14 '13 05:10 brianoh