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 » U++ Library support » U++ SQL » [sql] Select embeded in join
Re: [sql] Select embeded in join [message #22840 is a reply to message #22815] Fri, 21 August 2009 14:30 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Zbych wrote on Tue, 18 August 2009 17:08

Hi,

I need to embed select inside left join. I've found AsValue function, but I could not find anything that converts SqlSelect to SqlId, so I added this:
SqlId    AsTable(SqlId table) const               { return SqlId(String("(") << text << ")").As(table); }

to class SqlSelect.

Maybe it doesn't look to good, but it works.



Would it be possible to use other type as return value?

The problem is that the way SqlId works, all 'ids' are stored *permanently* (and then only integer indexes to the permanent Index are used). Means, using SqlId here could be considered a sort of leak...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Possible SqlOption Problem [Solved]
Next Topic: Postgresql - execpt vs minus
Goto Forum:
  


Current Time: Sat May 04 06:17:28 CEST 2024

Total time taken to generate the page: 0.03187 seconds