I have a simply Query
Code: Select all
SELECT
"vIDCheck".*,
"vEmailAddress".*
FROM
"vEmailAddress",
"vIDCheck"
WHERE
"vEmailAddress"."FKPersonID" = "vIDCheck"."PersonID" AND
(
"vEmailAddress"."EmailAddress" LIKE '%' || :EmailAddress || '%' OR
"vIDCheck"."Person" LIKE '%' || :Person || '%'
)
I can run1: parameter marker not allowed at /home/buildslave/source/libo-core/connectivity/source/drivers/jdbc/Object.cxx:173
Code: Select all
SELECT
"vIDCheck".*,
"vEmailAddress".*
FROM
"vEmailAddress",
"vIDCheck"
WHERE
"vEmailAddress"."FKPersonID" = "vIDCheck"."PersonID" AND
(
"vIDCheck"."Person" LIKE '%' || :Person || '%'
)
Code: Select all
SELECT
"vIDCheck".*,
"vEmailAddress".*
FROM
"vEmailAddress",
"vIDCheck"
WHERE
"vEmailAddress"."FKPersonID" = "vIDCheck"."PersonID" AND
(
"vIDCheck"."Nickname Surnames" LIKE '%' || :Person || '%' OR
"vIDCheck"."Person" LIKE '%' || :Person || '%'
)
A few questions therefore to help me understand.
1. Why does the 1st Query run fine in the split DataBase, and throws an error using TOOLS->SQL...?
2. Is DIRECT SQL the same as RAW SQL?
3. If DIRECT SQL is NOT the same as RAW SQL, what is then the function of Tools->SQL...?
3. How and where to find the compiled version of a Query, like the one above in LibreOffice? I want to understand the 'inner' workings of that process.
4. Why can a UserInput like ':Person' be used in RAW SQL (therefore in DBeaver) and not in DIRECT SQL if they are the 'same'?
Thanks in advance,
Dream