cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAY-1279) Passing null values in query parameters
Date Fri, 25 Sep 2009 07:50:16 GMT

    [ https://issues.apache.org/jira/browse/CAY-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759424#action_12759424
] 

Andrus Adamchik commented on CAY-1279:
--------------------------------------

> May be you could add me to developer list in JIRA to be able assign tasks to me? ;) 

I think it won't be practical until you can commit code. But submitting patches is a straight
way to commitership ;-)

> Passing null values in query parameters
> ---------------------------------------
>
>                 Key: CAY-1279
>                 URL: https://issues.apache.org/jira/browse/CAY-1279
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 1.2.5, 2.0.5, 3.0 beta 1, 3.0
>            Reporter: Evgeny Ryabitskiy
>             Fix For: 2.0.5
>
>         Attachments: CAY-1279-2.0+JUnitTest.patch, CAY-1279-2.0.patch
>
>
> Example1:
> INSERT INTO TABLE1 (id, NullableColumn) values (10, $MyNullValue)
> If I put null in MyNullValue parameter I will get: bad formed query because of how Velocity
do merge with templates.
> But Cayenne is using #bind directive, so....
> Example2:
> INSERT INTO TABLE1 (id, NullableColumn) values (10, #bind($MyNullValue))
> If I put null in MyNullValue parameter I will get Bind Exception.
> So.... how can I insert null in my column using Cayenne?!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message