cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgeny Ryabitskiy (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1279) Passing null values in query parameters
Date Wed, 23 Sep 2009 19:11:16 GMT

     [ https://issues.apache.org/jira/browse/CAY-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Evgeny Ryabitskiy updated CAY-1279:
-----------------------------------

    Fix Version/s: 2.0.5

> 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
>
>
> 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