cancel
Showing results for 
Search instead for 
Did you mean: 

Quotes missing in generated SQL-Query (from XML SQL) in Receiver Channel

ThomasZwerg
Participant
0 Kudos

Hello,

I have a problem regarding an JDBC receiver channel.

Basically it works as the INSERT statement is generated from my XML SQL message.

But the INSERT statement is missing the quotes.

the generated SQL is similar to the following:


INSERT INTO  myDB.tableName (Code, Number, InternalID,data, readDate)

VALUES (12, 56,  677, some text, 2016-08-18T11:08:50.358+02:00)

and there are obviously no quotes for the values.

What I'd expect is the following:


INSERT INTO  myDB.tableName (Code, Number, InternalID,data, readDate)

VALUES ('12', '56',  '677', 'some text', '2016-08-18T11:08:50.358+02:00')

according to SAP Documentation Defining an INSERT Statement - Configuring the JDBC Adapter in the Integration Directory/PCK - SAP L...

Do you have any Ideas how to get the quotes in my generated SQL statement?

Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Thomas,

Have you tried adding the attribute hasQUOT = YES to your field-names.

Br,

Manoj

ThomasZwerg
Participant
0 Kudos

Hi,

Thank you Manoj.

No, not yet. Do I need it for every single column or can I specify it for all columns of this query?

BR,

Thomas

Answers (0)