<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 - report wizard displays dat field as number in some cases"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139315">139315</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>report wizard displays dat field as number in some cases
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.4.7.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>herman.viaene@edpnet.be
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Using embedded Firebird 3.0
Define a table EMP with columns
empid autovalue
name varchar
address varchar
startdate date
Now I want startdate to have as default value current_date. The way I prefer to
do this, is to run the SQL command "alter table emp alter column startdate set
default current_date. This works OK.
Now create a query where the condition for startdate is "> current_date - 365".
To make it work, define the query as "run sql directly".
Now create a report on this query using the wizard, just a straight list of all
the fields from the query. The startdate on running the report comes out as a
number. Changing the report properties to refer to the query i.s.o. the sql
statement the report wizard inserted, does not make a difference.
Create from the query a view, and run again the report wizard, this time on the
view, and the startdate comes out as a date, which is the logical thing to be
expected.
Thee report wizard should have done this properly based on the query.</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>