You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by "Francis De Brabandere (JIRA)" <em...@incubator.apache.org> on 2009/12/25 10:47:29 UTC
[jira] Commented: (EMPIREDB-65) like not quoting value properly and
not quoting escape character properly on at least MSSQL and perhaps after
'and'
[ https://issues.apache.org/jira/browse/EMPIREDB-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794550#action_12794550 ]
Francis De Brabandere commented on EMPIREDB-65:
-----------------------------------------------
as what type is EntityName defined?
Should be one of these to be quoted:
case TEXT:
case CHAR:
case CLOB:
> like not quoting value properly and not quoting escape character properly on at least MSSQL and perhaps after 'and'
> -------------------------------------------------------------------------------------------------------------------
>
> Key: EMPIREDB-65
> URL: https://issues.apache.org/jira/browse/EMPIREDB-65
> Project: Empire-DB
> Issue Type: Bug
> Affects Versions: empire-db-2.0.6-incubating
> Environment: MSSQL
> Reporter: McKinley
>
> This will not wrap quotes aroung the like value:
> DBCompareColExpr lk = ecomp.EntityName.like("%"+companyName+"%");
> cmd.where(lk);
> This produces:
> where txx.SomeOtherThing = 'bar' and tXX.EntityName like %Foo% -- notice the lack of quotes!
> This may only be a problem when the like is added after an 'and'.
> This works:
> DBCompareColExpr lk = ecomp.EntityName.likeUpper("%"+companyName+"%");
> cmd.where(lk);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.