Apache JDO Project - JDOQL: comparing char field with multi-character string literal

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > November 2005 > JDOQL: comparing char field with multi-character string literal





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author JDOQL: comparing char field with multi-character string literal
Michael Bouschen

2005-11-02, 5:45 pm

Hi,

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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com