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 » Community » U++ community news and announcements » Sql column Ids now escaped
Re: Sql column Ids now escaped [message #35359 is a reply to message #35350] Mon, 06 February 2012 10:46 Go to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
mirek wrote on Sat, 04 February 2012 09:24


If SqlId does not contain valid sql id, it is not escaped. This is done to support things like:

Select(SqlId("*")).From(TABLE)

which seems to be used in existing code.



Ops, not so easy, above does not cover

Select(SqlId("current_time"))

which leads to SQL error (current_time is not schema name and cannot be escaped).

So I have changed everything in trunk:

static SqlId::UseQuotes switches quotes on for "modern" code, default is off to support legacy.

Modern code should use new SqlTxt to 'inject' SQL terms

Select(SqlTxt("current_time"))

and both of it makes checking id for being real id, which is time consuming, unnecessarry, so it is not there anymore...
 
Read Message
Read Message
Previous Topic: Refactored Value coming....
Next Topic: Settings and multiple ide instances
Goto Forum:
  


Current Time: Fri Jul 18 03:42:50 CEST 2025

Total time taken to generate the page: 0.04059 seconds