Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » A list of SQL dialects to support (eventually)..
A list of SQL dialects to support (eventually).. [message #4452] Wed, 09 August 2006 13:26 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
As I have made important breakthrough in "sql dialect problem", I have become interested in the real number of SQL dialects we should support.

So far, my list goes like

enum {
ORACLE, 1,
SQLITE, 2,
MYSQL, 4,
MSSQL, 8,
POSTGRESS, 16,
FIREBIRD, 32,
};

Are there any other important RDBMS engines to support?

As for "breakthrough" - I have found a nice way how to keep dialect stored in Session object and keep SqlExp in the SIMPLE "universal" form, performing the final "compilation" for specific
target dialect. (Note that important word here is SIMPLE - I knew how to do that the hard way before - SqlExp producing intermediate language that get compiled to final SQL commands - but that one would involve too much code).

The trick is to simply store all variants in SqlExp String together with some very simple if/else/endif codes (in the char range 1..31). Sounds stupid and simple, but took me 2 years to invent Wink (Even more fun is that the resulting code is shorter than the currect braindead dialect handling).

Mirek
Re: A list of SQL dialects to support (eventually).. [message #4453 is a reply to message #4452] Wed, 09 August 2006 14:05 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
This sounds very good Smile
I have only one comment:
The word POSTGRESS is not correct. It should be POSTGRES or POSTGRESQL, I think.
Re: A list of SQL dialects to support (eventually).. [message #4454 is a reply to message #4452] Wed, 09 August 2006 16:21 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
What about post-realational or OO DB SQL support?
E.g Caché?
http://www.intersystems.com/index.html
Re: A list of SQL dialects to support (eventually).. [message #4455 is a reply to message #4454] Wed, 09 August 2006 16:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I knew it Wink

Well, I know too little about OO SQL, but I am little bit afraid that it is simply a different kind of beast - therefore will need separate system to operate with (maybe not necessarily Sql, but quite likely SqlExp).

Mirek
Re: A list of SQL dialects to support (eventually).. [message #4456 is a reply to message #4455] Wed, 09 August 2006 16:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Now checked, seems like Cache OO SQL is not that differnt - the only difference I see is table inheritance.

That could be easily supported by SqlExp. I am however afraid that using cache this way (without object part) is not what they intended Wink

Mirek
Re: A list of SQL dialects to support (eventually).. [message #4501 is a reply to message #4452] Sat, 12 August 2006 14:41 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

I think IMB DB2 should be on the list..
Re: A list of SQL dialects to support (eventually).. [message #4502 is a reply to message #4501] Sat, 12 August 2006 15:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
unodgs wrote on Sat, 12 August 2006 08:41

I think IMB DB2 should be on the list..


Yes.

Do you by any chance know how IBM DB2 interface looks like?

Mirek
Re: A list of SQL dialects to support (eventually).. [message #4504 is a reply to message #4502] Sat, 12 August 2006 16:32 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Sat, 12 August 2006 09:19

unodgs wrote on Sat, 12 August 2006 08:41

I think IMB DB2 should be on the list..


Yes.

Do you by any chance know how IBM DB2 interface looks like?

Mirek

You mean native API? DB2 use CLI which is almost the same like ODBC interface. But it has OLEDB drivers too.
SQL dialect is SQL-92 if I remeber correctly with some enchacements.
Previous Topic: Should we double-buffer by default?
Next Topic: Which parts of Esc are the biggest reasons of its slowliness?
Goto Forum:
  


Current Time: Sun May 05 22:01:45 CEST 2024

Total time taken to generate the page: 0.02791 seconds