kundera icon indicating copy to clipboard operation
kundera copied to clipboard

the parameter can not be set in a update feild when using jpql!

Open zhouhero opened this issue 13 years ago • 14 comments

when i use parameter in update feild, i"named parameter::datetime not found!" error happend.

my jpql is that: "update Test1Entity c set c.datetime = :datetime where c.key = :key"

Can anyone help me ?

zhouhero avatar Dec 13 '12 12:12 zhouhero

Confirming this as a bug. Assigning on priority.

-Vivek

mevivs avatar Dec 13 '12 12:12 mevivs

thank you very much!

zhouhero avatar Dec 14 '12 01:12 zhouhero

Veirifed and fixed in trunk. 2.3 release will have this fix.

mevivs avatar Jan 22 '13 09:01 mevivs

thanks for you reply. i will try it.

zhouhero avatar Jan 22 '13 09:01 zhouhero

it seem that this problem has not be fixed now! could you pls give me a test sample code?

zhouhero avatar Apr 04 '13 11:04 zhouhero

What's the issue you getting with this now?

-Vivek

mevivs avatar Apr 04 '13 11:04 mevivs

when i excuted the fellow jpql. the error happend.

... String jpql = "update Test1Entity c set c.url = :url where c.key =acca0890-9c29-11e2-95f4-90b11c71b8d4"; query.setParameter(url, "dsdsds sdsdsd"); ....


java.lang.NullPointerException at com.impetus.kundera.query.KunderaQuery.setParameterValue(KunderaQuery.java:661) at com.impetus.kundera.query.KunderaQuery.setParameter(KunderaQuery.java:641)

at com.impetus.kundera.query.QueryImpl.setParameter(QueryImpl.java:642)

[my cf] create column family test1 with comparator = UTF8Type and key_validation_class=TimeUUIDType and column_metadata = [ {column_name:userid, validation_class:UUIDType} {column_name:url, validation_class:UTF8Type} {column_name:datetime, validation_class:DateType} {column_name:linkcounts, validation_class:Int32Type} ];

zhouhero avatar Apr 04 '13 11:04 zhouhero

could you pls check it me? thank you very mutch!

zhouhero avatar Apr 05 '13 08:04 zhouhero

I am looking into now. Please share Version of Kundera, you are using?

-Vivek

mevivs avatar Apr 05 '13 08:04 mevivs

it is kundera2.4 + cassandra1.2.3

zhouhero avatar Apr 05 '13 08:04 zhouhero

Please share your yahoo or gtalk id to fix these issues on priority.

-Vivek

mevivs avatar Apr 05 '13 08:04 mevivs

my gmail is : [email protected]

zhouhero avatar Apr 05 '13 08:04 zhouhero

It was partially fixed, i have added a fix for this.

-Vivek

mevivs avatar Apr 05 '13 10:04 mevivs

i have test it. it work well now. thank you very much!

zhouhero avatar Apr 17 '13 01:04 zhouhero