<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:drewjensen.inbox@gmail.com" title="Drew Jensen <drewjensen.inbox@gmail.com>"> <span class="fn">Drew Jensen</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FIREBIRD (internal): Parameter doesn't work with COALESCE and numeric fieldtypes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=130596">bug 130596</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>drewjensen.inbox@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FIREBIRD (internal): Parameter doesn't work with COALESCE and numeric fieldtypes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=130596#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FIREBIRD (internal): Parameter doesn't work with COALESCE and numeric fieldtypes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=130596">bug 130596</a>
              from <span class="vcard"><a class="email" href="mailto:drewjensen.inbox@gmail.com" title="Drew Jensen <drewjensen.inbox@gmail.com>"> <span class="fn">Drew Jensen</span></a>
</span></b>
        <pre>Tested with Ubuntu 18.04 and LO 6.2.4 and 6.4

I can confirm that the named parameter function is not working properly in the
COALESCE function.  

It may be for all functions. I also tried using a parameter in the SUBSTRING
function with this query:
SELECT substring( "Name" from 1 for :testDec ) FROM "Table1" 

and received a slightly different error:

Error code: 1

firebird_sdbc error:
*Dynamic SQL Error
*SQL error code = -804
*Data type unknown
caused by
'isc_dsql_prepare'

while this query:
SELECT cast( :testInt as integer) AS "Int" FROM "Table1" 

returns the original error (from the coalesce) of: 
SQL Status: HY004
Incorrect type for setString

I don't think the data type listed in the subject is important but will try a
few other functions before I change that.</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>