SQL-Connector global variable in where-clause
-
Mathieu RollHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)5 years ago #18414::
Hello,
i can’t see the issue but here is an example application where i’m using a sqlite datebase within my connector.
perhaps this will help you to find out what the problem is.
In the “createShoppingListItem” Call im using a structure to fill the parameters and in the “getShoppingListItemById” im using a single parameter.
steinhauerHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)5 years ago #18433::Hello Malfurion,
thank you for the file, but it does not solve the problem. I have got an example before, which called a MySql-database. But now I have to login to an Oracle database.
I talked to my colleagues and we suspect that the SQL query is not compiled correctly. Again my question: What does “message”: “The index 2 is out of range.”, mean. And where can I see how the query compiled with the parameter looks like? Quotation marks may be used instead of the expected quotes. The MySql database does not mind, MsSQL and Oracle already.
steinhauerHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)5 years ago #18447::Hello Malfurion,
Thank you for your example. My connector call I have programmed like an existing example, so your pattern unfortunately does not provide extra information.
I’m assuming the database query still has a problem, such as quotation marks instead of quotes, or the type definition is not correct – and probably because of how the query string is put together with the parameter: job: string :.
So my question is: how can I see the query string compiled by Simplifier?
The field pur.t_orno, in which the parameter request is entered, has the type nvarchar (9) in the database. Is the conversion possibly not correct?Christian KleinschrothHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)Has successfully completed the online course Advanced (310)Has successfully completed the online course Advanced (320)Has successfully completed the Intermediate CertificationHas successfully completed the Advanced CertificationsteinhauerHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)5 years ago #18496::Hello Christian,
I removed the leading slash, nowthe input parameter is params/auftrag. And the connector ttest message is
{
“message”: “The index 2 is out of range.”,
“success”: false
}like before. May be the query string compiled by Simplifier is not exactly the same as the one I entered with a fixed value.
So again: How can I see the query string compiled by Simplifier? Or is that not possible?
steinhauerHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Christian KleinschrothHas successfully completed the online course IntroductionHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)Has successfully completed the online course Advanced (310)Has successfully completed the online course Advanced (320)Has successfully completed the Intermediate CertificationHas successfully completed the Advanced Certification
You must be logged in to reply to this topic.