You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2009/09/27 15:19:16 UTC
[jira] Closed: (CAY-1279) Passing null values in query parameters
[ https://issues.apache.org/jira/browse/CAY-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik closed CAY-1279.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.0 beta 1
1.2.5
Assignee: Andrus Adamchik
applied to all active branches. Thanks Evgeny!
> 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
> Assignee: Andrus Adamchik
> Fix For: 1.2.5, 2.0.5, 3.0 beta 1
>
> 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.