Thanks ksug.

These two SQL expect same result.

Field1's type on MySQL is int.
When returning value as string type, that value is same to int value after 
asserted to int.
But it's troublesome to handle two different result by placeholder 
added/not added.


2016年9月28日水曜日 21時23分52秒 UTC+9 ksug:
>
> In a nutshell, Scan() internally performs several nested type switches 
> based on the type of the Scan destination and what is received from the 
> database (in other words, the driver). 
>
> As to why the two scans returned values of different types, more 
> information is needed. But since the queries were similar and the dest 
> were the same, you could start by looking at what is stored in the 
> database and what's the int64/[]byte returned. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to