InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: sql syntax problem


George

InstantDB only allows constants in the right hand side of LIKE clauses. So

...WHERE UPPER(prod.name) LIKE "MY_PRODUCT"

would be OK, but general expressions, such as "UPPER (?)", are,
unfortunately, not currently allowed. You can do a case insensitive match
using:

...WHERE UPPER(prod.name) LIKE "?" IGNORE CASE

though.

On a related note, functions, such as UPPER, don't generally appear in
InstantDB's syntax definition. Functions can be added or removed by users as
needed and are loaded by InstantDB at runtime. See
http://instantdb.enhydra.org/software/documentation/user.html for more
details.

Regards

Pete

--

Peter Hearty                         peter.hearty@lutris.com
Lutris Technologies (UK)        http://www.lutris.com
----- Original Message -----
From: "george stewart" <georgestewartiv@yahoo.com>
To: <instantDB@enhydra.org>; "Tom Copeland" <tom@roku.com>
Sent: Friday, September 15, 2000 6:41 PM
Subject: Re: InstantDB: sql syntax problem


> Hi,
>
> --- george stewart <georgestewartiv@yahoo.com> wrote:
> > Hi,
> > I get an sql exception from InstantDB with the
> > following:
> >
> > net.sourceforge.osage.PersistenceException: Nested
> > error:
> > java.sql.SQLException: SELECT prod.id,
> > prod.group_id,
> > prod.name,
> > prod.price
> > FROM prod WHERE UPPER(prod.name) LIKE UPPER(?)
> >  Don't understand SQL after: "("
> >  Expected: "{" found: "("
> >
> > Isn't this valid sql?
>
> I've just noticed that "UPPER" is not in InstantDB's
> syntax.  Is there any to search without case
> sensitivity?
>
> Regards, george
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
> --------------------------------------------------------------------------
---
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.