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]

InstantDB: integer or char() error


We have to handle different kinds of article numbers (string/char), that
may consist of numbers starting with 0.
But using the following statement (simplified) always leads to trouble.

 "SELECT '00002' FROM test"  and you will receive "2" not "00002"

This seems to be of the same kind as "SELECT lower("00002") FROM test

    AWT-EventQueue-0 java.sql.SQLException: LOWER requires a single
string parameter
    java.sql.SQLException: LOWER requires a single string parameter


The string "00002" is never interpreted as a string (or char), how can
one force it to be a string ?

Jens Panse



--
-[ ]-/\-( )---------------------------------------EasternGraphics-------

Jens Panse

http://www.EasternGraphics.com
phone:            03677 678267
private:     jens.panse@gmx.de


-----------------------------------------------------------------------------
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.