Rows.Scan fails when passed argument of type *RawBytes #23

giolekva opened this Issue Jun 2, 2012 · 3 comments

2 participants


When trying to execute this code: I get error:

panic: sql: Scan error on column index 0: unsupported driver -> Scan pair: int64 -> *sql.RawBytes

Am I doing something wrong or this is the issue with mymysql driver?


I can't reproduce your problem because your code can't be compiled: a, b, c variables aren't defined (panic suggest that in real code 'a' is of type *sql.RawBytes). Did you check types of these variables?


Sorry I made last changes in the browser without trying to run it.
So yeah a, b and c variables should have type: sql.RawBytes.
Here is modified code:


It seems that this is database/sql issue. See source of Scan method ( and convertAssign in

@ziutek ziutek closed this Jul 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment