U++ framework
Do not panic. Ask here before giving up.

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 previous message
mirek is currently offline  mirek
Messages: 14291
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: Thu Dec 03 23:24:56 GMT+1 2026

Total time taken to generate the page: 0.02908 seconds