Giter Club home page Giter Club logo

Comments (6)

DrFriedParts avatar DrFriedParts commented on August 27, 2024 1

Actually what was going on is that I forgot (in only one place) to add the database connection as the second parameter. The error is actually being reported by JDBC as it looks for keys for the connection in my parameter data hashmap. Perhaps a clearer error message would help here since, I suspect, it is a common problem for people coming from Yesql-like libraries.

from hugsql.

csummers avatar csummers commented on August 27, 2024

@kg4lod I'm not exactly sure what you are referring to. HugSQL's parameter mismatch error looks like this:

(is (thrown-with-msg? ExceptionInfo
                              #"Parameter Mismatch: :id parameter data not found."
                              (one-value-param-sqlvec {:x 1})))

So, the parameter name is given to you in the error message.
Are you seeing different behavior, and can you provide an example of that behavior?

Thanks!

from hugsql.

csummers avatar csummers commented on August 27, 2024

Is it possible that you are using HugSQL with Luminus/conman? I did find a reference to "is missing a required parameter" in this post regarding mount.core.DeferrableState. If that's not it, I'm happy to help track down the issue if you provide an example or more of the stack trace. Thanks!

from hugsql.

DrFriedParts avatar DrFriedParts commented on August 27, 2024

Thank you for the reply! I'll investigate today and report back. Apologies if I merely missed something.

from hugsql.

DrFriedParts avatar DrFriedParts commented on August 27, 2024

I can confirm. I am now seeing this message:

clojure.lang.ExceptionInfo: Parameter Mismatch: :id parameter data not found.

Apologies for the errant issue.

from hugsql.

csummers avatar csummers commented on August 27, 2024

No problem! Glad you figured it out.

from hugsql.

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.