[teiid-issues] [JBoss JIRA] Commented: (TEIID-1341) boolean=true doesn't work predictably against MySQL connector

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Tue Nov 2 23:09:01 EDT 2010


    [ https://jira.jboss.org/browse/TEIID-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561001#action_12561001 ] 

Steven Hawkins commented on TEIID-1341:
---------------------------------------

The conversion logic in teiid expressly handles non-0 values as true, but there is no special logic in comparison predicates to handle this case.

> boolean=true doesn't work predictably against MySQL connector
> -------------------------------------------------------------
>
>                 Key: TEIID-1341
>                 URL: https://jira.jboss.org/browse/TEIID-1341
>             Project: Teiid
>          Issue Type: Quality Risk
>          Components: JDBC Connector
>    Affects Versions: 6.0.0
>            Reporter: Debbie Steigner
>             Fix For: 7.3
>
>
> MySQL defines false as zero and anything else as a true. So, in MySQL, writing "... where boolean_column = true ..." will usually not evaluate correctly because true is defined as one. To avoid this confusion, MMX should translate boolean_column=true to boolean_column<>false in the SqlTranslator of the MySQL Connector. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list