Code Monkey home page Code Monkey logo

Comments (4)

turnstep avatar turnstep commented on July 20, 2024

At first glance, I don't know if this is possible. The problem is that DBI wants to call ParamValues on the current handle. For statement handles, this is no problem, as the placeholders are stored in the sth structure (which ParamValues walks through via dbd_st_FETCH_attrib). For database handles, however, we create a very local and temporary imp_sth inside of Pg.xs, which goes out of scope well before DBI asks $dbh for ParamValues (which it cannot handle anyway, as it knows nothing about it). We could in theory jump through some hoops to have imp_dbh start storing detailed information from its temporary imp_sth creation, but seems a lot of trouble for something so trivial.

I will expand the documentation to make this clearer, however.

from dbdpg.

dk avatar dk commented on July 20, 2024

It would help debugging a lot to have parameters dumped together with the error. Or at the very least fix the documentation with example how to rewrite do() calls into something that respects ShowErrorStatement..

from dbdpg.

dk avatar dk commented on July 20, 2024

I've sent a pull request please review. Please disregard d636fc6 , it's still there because only github didn't roll it back when I did 'git reset'.

from dbdpg.

turnstep avatar turnstep commented on July 20, 2024

Added as of version 3.9.0

from dbdpg.

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.