DBAL-546: [GH-337] Add getBindingType() method in DecimalType #1755

Closed
doctrinebot opened this Issue Jun 17, 2013 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of javierseixas:

Url: #337

Message:

Hi,

I was trying to use the findBy method from the repository, where some of the criteria data were negative floats values. I didn't get any results, though I had coincidental records in the BD with that criteria.

After searching I found this issue: http://stackoverflow.com/questions/8300208/php-pdo-prepare-negatives-become-positive

So, it seemed the problem was caused for the same reason. I've added the getBindingType() returning the PDO::PARAM_INT constant and now my findBy is returning the results correctly.

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-337] was closed:
#337

@doctrinebot

Issue was closed with resolution "Invalid"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment