<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Loop executing direct SQL"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=114702#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Loop executing direct SQL"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=114702">bug 114702</a>
              from <span class="vcard"><a class="email" href="mailto:lo_bugs@iseries-guru.com" title="Terrence Enger <lo_bugs@iseries-guru.com>"> <span class="fn">Terrence Enger</span></a>
</span></b>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=138665" name="attach_138665" title="excerpt from gdb: info threads; backtrace">attachment 138665</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=138665&action=edit" title="excerpt from gdb: info threads; backtrace">[details]</a></span>
excerpt from gdb: info threads; backtrace

Looking further, I see a long running loop between
dbaccess/source/ui/dlg/directsql.cxx statements 207 and 209:

                   +-- uno::Reference to (OStatement *) 0x5555573072e8
                   |  +-- com::sun::star::uno::Reference<com::sun::star
                   |  |  ::sdbc::XMultipleResults>::operator->
                   |  |  return value = (OStatement *) 0x555557307210
                   |  | +-- OStatementBase::getMoreResults
                   |  | |   return value = 0 '\000'
                   |  | |
207: while ((hasRS=xMR->getMoreResults()) || (xMR->getUpdateCount() != -1))
                                                 | |
       com::sun::star::uno::Reference<com::sun --+ |
       ::star::sdbc::XMultipleResults>             |
       ::operator->                                |
       return value =                              |
       (OStatement *) 0x555557307210               |
                  OStatementBase::getUpdateCount --+
                  return value = 0

208: {
209:     if(hasRS)
            | 
            +-- false
210:     {
...   
214:     }
215: }


This information is from a local build of 68f7d89c, 2017-12-11,
configured
    CC=ccache /usr/bin/gcc
    CXX=ccache /usr/bin/g++
    --enable-option-checking=fatal
    --enable-dbgutil
    --enable-debug
    --without-system-postgresql
    --without-myspell-dicts
    --with-extra-buildid
    --without-doxygen
    --with-external-tar=/home/terry/lo_hacking/git/src
    --without-package-format
built and running of debian-buster.

I am setting keyword haveBacktrace.</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>