Given the definition in section 11.2.6.5 of the specification, it would
appear not.

This seems sensible as most DBMS systems don't guarantee order of evaluation
in query predicates.

Cheers,

Eoin.
-----Original Message-----
From: Richard Monson-Haefel [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 6:46 AM
To: [EMAIL PROTECTED]
Subject: EJB 2.0: Logical Operators AND and OR


Can we assume that the logical operators AND and OR in EJB QL are
similar to && and || in that the right hand operand is evaluated
conditionally?  For example, AND evaluates its right-hand operand only
if
the value of its left-hand operand is true. Also OR evaluates its
right-hand operand only if the value of its left-hand operand is false.

Thanks,

Richard
--
Richard Monson-Haefel
Author of Enterprise JavaBeans, 2nd Edition  (O'Reilly 2000)
Co-Author of Java Message Service (O'Reilly 2000)
http://www.jMiddleware.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to