db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bouschen <mbo.t...@spree.de>
Subject JDOQL: comparing char field with multi-character string literal
Date Wed, 02 Nov 2005 14:25:22 GMT

it is legal JDOQL to compare a char field with a multi-character string 
literal, e.g. setFilter("charField == 'Michael'")?

The spec says: "Single-character String literals can be used wherever 
char literals are permitted.". Does it mean multi-character string 
literals result error during compile or does the expression just 
evaluate to false at runtime? I would expect a compile error.

Regards Michael
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin			

View raw message