GoMySQL icon indicating copy to clipboard operation
GoMySQL copied to clipboard

Empty string in a varchar column returns Null

Open timob opened this issue 13 years ago • 1 comments

create table gotest (x varchar(255)); insert into gotest values ('');

Selecting from this in GoMySQL gets you a nil value instead of an empty string.

timob avatar Sep 02 '11 12:09 timob

Here is my fix:

https://github.com/timob/GoMySQL/commit/a749deb635a7ae452dd6cbee766b0dae64189d51

timob avatar Sep 02 '11 12:09 timob