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

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: 14291
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: Wed Jul 08 14:02:34 GMT+2 2026

Total time taken to generate the page: 0.00501 seconds