Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

Specifying field names that contain the colon character in SQL queries

$
0
0

Hi there,

 

I've been experimenting with adding the contents of an extension field into the Task History but the fieldname is causing problems. I modified the 'Insert Task History' query to append the contents of this field to the history like this:

 

    :lHISTORY_DESC[REQUEST:EXTFLDV_500221 + :lREQUEST:EXTFLDV_500221],

    :lHISTORY_DESC_HTML[REQUEST:EXTFLDV_500221_HTML + :lREQUEST:EXTFLDV_500221_HTML],

 

but when executed I get the error: Incorrect syntax near ':'. It seems that the colon in 'REQUEST:EXTFLDV_500221' is causing the problem. If I change the fieldname in the html of the Task Details page to not contain the colon, the query runs as expected, but then I have the problem that the field doens't load its text from the DB due to the name change.

 

So is there a way to escape the colon character? Or if not, is there a way to rename the field so that it maintains the DB links?

 

 

Thanks


Viewing all articles
Browse latest Browse all 180259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>