Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SQL::Maker::SQLType to pass around the typed parameters #133

Merged
merged 2 commits into from Jul 14, 2014

Conversation

kazuho
Copy link
Contributor

@kazuho kazuho commented Jul 11, 2014

As discussed in #132, strict mode of SQL::Maker disallows the use of arrayrefs as bind parameters, and thus Teng needs to use SQL::Maker::SQLType for passing the typed parameters around.

Note: Programming interface provided by SQL::Maker::SQLType is awkward (in the sense that a) designates scalarrefs to be used for passing in the value, b) does not provide a way to fetch the value-type pair in a style that is easy to be passed to $sth->bind_param). However after discussing with @tokuhirom, the conclusion is to not change the current API.

cho45 added a commit that referenced this pull request Jul 14, 2014
Use SQL::Maker::SQLType to pass around the typed parameters
@cho45 cho45 merged commit eaa7580 into nekokak:master Jul 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants