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++ TheIDE and Library: Releases and ChangeLogs » SqlExp deeply refactored
SqlExp deeply refactored [message #5222] Mon, 11 September 2006 01:05 Go to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
This is done mainly to start supporting SQL dialects based on session type - SQL statements are now "compiled" for specific target SQL engine (but fine tuning all commands for specific database engines will take some time).

In the process, I refined the structure of SqlExp types to avoid single "SqlSet" to serve too much purposes. So now we have

SqlSet - now just set of values (or Select result), no more represent SQL statement

SqlStatement
SqlSelect
SqlInsert
SqlDelete
SqlUpdate

Most of code using SqlExp works without trouble after this huge change, but some extreme usages (usually very old) needed to be fixed in our apps.

Mirek
Re: SqlExp deeply refactored [message #5237 is a reply to message #5222] Mon, 11 September 2006 09:49 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Sun, 10 September 2006 19:05

This is done mainly to start supporting SQL dialects based on session type - SQL statements are now "compiled" for specific target SQL engine (but fine tuning all commands for specific database engines will take some time).

In the process, I refined the structure of SqlExp types to avoid single "SqlSet" to serve too much purposes. So now we have

SqlSet - now just set of values (or Select result), no more represent SQL statement

SqlStatement
SqlSelect
SqlInsert
SqlDelete
SqlUpdate

Most of code using SqlExp works without trouble after this huge change, but some extreme usages (usually very old) needed to be fixed in our apps.

Mirek



Great!. But what about Left/Right Join? I noticed they use Oracle syntax (join type is specified in where clause). Unfortunately that syntax is not common in others databases..
Re: SqlExp deeply refactored [message #5239 is a reply to message #5237] Mon, 11 September 2006 10:06 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Quote:


Great!. But what about Left/Right Join? I noticed they use Oracle syntax (join type is specified in where clause). Unfortunately that syntax is not common in others databases..



Quote:


(but fine tuning all commands for specific database engines will take some time)



Actually, joins where the main reason to separate SqlSelect from SqlSet... actual implementation of left/right joins will be the next step.

Mirek
Re: SqlExp deeply refactored [message #5245 is a reply to message #5239] Mon, 11 September 2006 10:57 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Mon, 11 September 2006 04:06


Quote:


(but fine tuning all commands for specific database engines will take some time)


Actually, joins where the main reason to separate SqlSelect from SqlSet... actual implementation of left/right joins will be the next step.



Yep, I didn't read carefuly..
Anyway, sql-92 is implemented in most popular databases, so one change (sytax: left/right outer join) is needed to have them all suported.
Re: SqlExp deeply refactored [message #5246 is a reply to message #5245] Mon, 11 September 2006 11:12 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
unodgs wrote on Mon, 11 September 2006 04:57

luzr wrote on Mon, 11 September 2006 04:06


Quote:


(but fine tuning all commands for specific database engines will take some time)


Actually, joins where the main reason to separate SqlSelect from SqlSet... actual implementation of left/right joins will be the next step.



Yep, I didn't read carefuly..
Anyway, sql-92 is implemented in most popular databases, so one change (sytax: left/right outer join) is needed to have them all suported.



Yes, but I will need to refactor SqlSelect quite a lot, breaking it the same way as SqlUpdate or SqlInsert are now done. That will need some time (I am quite happy at the moment to have all SqlExp bugs hopefully sorted out so that my commercial apps work once again...).

Mirek
Previous Topic: Paint system once again refactored...
Next Topic: SQLApp example...
Goto Forum:
  


Current Time: Wed May 15 03:20:42 CEST 2024

Total time taken to generate the page: 0.02654 seconds