<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 - Error if I do a Time query in LibreOffice Base [Critical]"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140713">140713</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error if I do a Time query in LibreOffice Base [Critical]
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>faizanrizwan1@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I created a table in which I wanted to find the records which have a Departure
Time more than 10:00:00. When I try that in LibreOffice Base Query Editor I
enter: > '10:00:00: in the criterion, but when I ran the query it gave me this
error:

firebird_sdbc error:
*conversion error from string "10:00:00.000000000"
caused by
'isc_dsql_fetch'

This is the SQL for it:

SELECT "Flight number" FROM "Table1" WHERE "Notes" = 'Passengers only' AND
"Departure time" > '10:00:00.000000000'

See, the problem here is that Base is automatically adding trailer zeros in
front of the time I have specified. 

Please fix this. There shouldn't be such a big in such a simple thing.

Steps to Reproduce:
1. Make a field and sets its data type as "Time"
2. Fill in some time values for the database.
3.Make a query in which you compare the times, e.g. finding the record which
has the time more than 10:00.

Actual Results:
SELECT "Flight number" FROM "Table1" WHERE "Notes" = 'Passengers only' AND
"Departure time" > '10:00:00.000000000'

Expected Results:
It should have found the single record which satisfied the criterion.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_US); UI: en-GB
Calc: CL</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>