<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - base/postgres seem to use ODBC brace construct, query fail (...FROM { oj "field"...)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117897">117897</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>base/postgres seem to use ODBC brace construct, query fail (...FROM { oj "field"...)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Base
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>grin@grin.hu
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Using postgres connectot LO seems to use ODBC brace constructs, which causes
the query fail.
It was triggered by creating a simple query joining two tables.

Seems " { oj " is some odbc macro wants to be expanded, which doesn't happen in
the postgres driver.

The generated SQL:
SELECT "t3"."nev", "t3"."szam", "t3-nev"."AccountType", "t3-nev"."Description",
"t3-nev"."AccountNumber", "t3-cim"."varos", "t3-cim"."utca", "t3"."jog1",
"t3"."jog2", "t3"."jog3", "t3"."jog4" FROM { oj "public"."t3-cim" "t3-cim"
RIGHT OUTER JOIN "public"."t3" "t3" ON "t3-cim"."szam" = "t3"."szam" LEFT OUTER
JOIN "public"."t3-nev" "t3-nev" ON "t3-nev"."AccountName" = "t3"."nev" } ORDER
BY "t3"."nev" ASC, "t3"."szam" ASC


Steps to Reproduce:
see above

Actual Results:  
error popup.

Expected Results:
running the query.


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101
Firefox/62.0</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>