Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
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 [email protected] on 26 Apr 2013 at 5:15

from odbc.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
I am surprised it worked before! Thank you. Do you want to send the fix?

Alex

Original comment by [email protected] on 26 Apr 2013 at 5:36

  • Changed state: Accepted

from odbc.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
https://codereview.appspot.com/9010043/

Original comment by [email protected] on 29 Apr 2013 at 7:27

  • Changed state: Started

from odbc.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
This issue was closed by revision 62682477fd4e.

Original comment by [email protected] on 3 May 2013 at 1:58

  • Changed state: Fixed

from odbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.