Skip to main content
Solved

SQL Reserved words

  • May 17, 2022
  • 4 replies
  • 69 views

Tejo van de Bor
Captain
Forum|alt.badge.img+5

hi,

During the Creation steps in Deployment, I’ve had some problems because I used preserved SQL names (check, revoke) in the data model. How come the SF does not validate this during Creation? Or am I missing something?

The list of preserved words is getting bigger and bigger..

Best answer by Mark Jongeling

hi Mark,

Ah, I see the validation now, but it is only a warning (in testing I normally skip these warnings 😬 ). Shouldn’t this be an error as the sql code breaks when executing?

 

We did change the way the Software Factory handles these object names from 2022.1. When rolling out your model, object names are escaped using quotes ("”) around the name. This prevent an error from occurring and thus make it possible to roll out. We made this change due to Upcycled projects possibly having these object names. So the Warning severity is correct in this case.

I suppose you are working on the 2021.3 version which did not have these changes yet, then the severity may not be entirely correct. Many reserved keywords can be used in object names but indeed some are problematic.

This topic has been closed for replies.

4 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Tejo,

The Software Factory does have a number of Validations that validate the data model to see if any reserved keywords are used. 

The SQL keywords you mentioned are in the reserved keyword list:

Reserved keywords

Can you check if you received any validation messages about the usage of these names? And if not, what type of objects where using these keywords?


Tejo van de Bor
Captain
Forum|alt.badge.img+5

hi Mark,

Ah, I see the validation now, but it is only a warning (in testing I normally skip these warnings 😬 ). Shouldn’t this be an error as the sql code breaks when executing?

 


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • Answer
  • May 17, 2022

hi Mark,

Ah, I see the validation now, but it is only a warning (in testing I normally skip these warnings 😬 ). Shouldn’t this be an error as the sql code breaks when executing?

 

We did change the way the Software Factory handles these object names from 2022.1. When rolling out your model, object names are escaped using quotes ("”) around the name. This prevent an error from occurring and thus make it possible to roll out. We made this change due to Upcycled projects possibly having these object names. So the Warning severity is correct in this case.

I suppose you are working on the 2021.3 version which did not have these changes yet, then the severity may not be entirely correct. Many reserved keywords can be used in object names but indeed some are problematic.


Tejo van de Bor
Captain
Forum|alt.badge.img+5

Ah, jep, 2021.3 here. Thanks, we need to update :-)