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: Bug or not a Bug.


Johan

Have a look at

http://instantdb.enhydra.org/software/documentation/types.html

The section on string literals should explain what's going on and how to get
around it.

> there is a workaround using the like function:
> select tableid from table where name like 'naam'
>
> is this as fast as using the normal = ?

"Like" will be much slower than "=" in InstantDB. "=" is optimised to
prevent instantiation of unmatched String objects. "Like" does not perform
this optimisation.

Regards

Peter Hearty
Lutris Technologies (UK)
----- Original Message -----
From: "Johan Compagner" <joco@wxs.nl>
To: <instantdb@enhydra.org>
Sent: Friday, August 25, 2000 11:00 AM
Subject: InstantDB: Bug or not a Bug.


> I have the following table named table:
>
> |tableid| name| typeid |
> |-------------|-------|
> |   1     |name | 1000 |
> |-------------|-------|
> |   2     |typeid| 1001 |
> ----------------------
>
> You see the name column has a value name.
>
> If i want to select on name i do this:
>
> select tableid from table where name = 'name' (every row is selected)
> or
> select tableid from table where name = 'typeid' (exception: Illegal
mixture
> of string/numeric.)
>
> it seems that the name between the quotes is also parsed as a column name.
> I really don't know if this is a bug or not because i don't know what SQL
is
> saying
> about this. Because i think that quotes can be used (i don't know exactly
> how) in the where with column names.
>
> there is a workaround using the like function:
> select tableid from table where name like 'naam'
>
> is this as fast as using the normal = ?
>
> I hope that i can have an option so that when i place after the = a string
> between quotes
> the string is parsed as a table value and not as a column name.
>
> Johan Compagner
>
> P.S. When is instantdb released as open source (that i could look for
> myself)
>
>
>
>
>
> --------------------------------------------------------------------------
---
> 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.