Watch, Follow, &
Connect with Us
Public Report
Report From: InterBase/Examples    [ Add a report in this area ]  
Report #:  27489   Status: Closed
(Pulled) ..\examples\Udf\ib_udf.sql  has the wrong declation for ascii_char.    IBPhoenix says it should be:    DECLARE EXTERNAL FUNCTION
Project:  InterBase Build #:  6.5.0.28
Version:    7.1 Submitted By:   John Kaster
Report Type:  Basic functionality failure Date Reported:  12/26/2001 12:00:00 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    Linux on Intel Internal Tracking #:   125652
Resolution: Fixed (Resolution Comments) Resolved in Build: : 7.5.1.162
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
..\examples\Udf\ib_udf.sql  has the wrong declation for ascii_char.

IBPhoenix says it should be:

DECLARE EXTERNAL FUNCTION ascii_char
INTEGER
RETURNS CSTRING(1) FREE_IT
ENTRY_POINT 'IB_UDF_ascii_char' MODULE_NAME 'ib_udf';

but I can't get this to work either.

Using what is currently there ror this new syntax results in the error:

arithmetic exception, numeric overflow, or string truncation

I got this fix from:

http://www.ibphoenix.com/ibp_60_known_issues.html

Note: This error is in the docs as well

>>>>>>

This is now fixed in the code. It needs to be fixed in the documentation (PDFs).
<<<<<<
Steps to Reproduce:
None
Workarounds
Verified in IB7.1.0.87
Closing it.

-Dan
Attachment
N
Comments

None

Server Response from: ETNACODE01