Closed GoogleCodeExporter closed 9 years ago
OK, I found the problem! In param.go, BindValue assigns values to Data to keep
it from being GCed, but it doesn't assign values it actually should. For
example in int64 case it assigns p.Data = d (a copy of int64) when buf is
pointing to the address of int64. Because of this nothing stops GC from garbage
collecting the heap int64, so by the time SQLExecute is called all sorts of
garbage may happen to be there.
Original comment by sna...@gmail.com
on 26 Apr 2013 at 5:15
I am surprised it worked before! Thank you. Do you want to send the fix?
Alex
Original comment by alex.bra...@gmail.com
on 26 Apr 2013 at 5:36
https://codereview.appspot.com/9010043/
Original comment by alex.bra...@gmail.com
on 29 Apr 2013 at 7:27
This issue was closed by revision 62682477fd4e.
Original comment by alex.bra...@gmail.com
on 3 May 2013 at 1:58
Original issue reported on code.google.com by
sna...@gmail.com
on 26 Apr 2013 at 4:47