I have a problem in TD 6.3 .NET Trial version using with Oracle.
If I make a stored function in Oracle which has a varchar2 type return value, then I must use this in TD as long string, but the length is less than 254. Why? Is there a setting wich I didn't set? Or what?
Example:
create or replace function
tmp_fnc
return varchar2
as
xs_retval varchar2(100);
begin
xs_retval := 'AbcDef';
return xs_retval;
end tmp_fnc;
TD side
variables
String: sVal
Long String: lsVal
Sql Handle: hSql
Number: n
If SqlPrepareAndExecute(hSql,'select tmp_fnc from dual into :sVal)
Call SqlFetchNext(hSql,n)
! The value of sVal is null
If SqlPrepareAndExecute(hSql,'select tmp_fnc from dual into :lsVal)
Call SqlFetchNext(hSql,n)
! The value of lsVal is 'AbcDef'
BUT! If I make a stored procedure in Oracle which has an out varchar2 parameter, it works correctly.
Example:
create or replace
procedure tmp_prc
(
xs_output OUT varchar2
)
as
begin
xs_output := 'AbcDef';
end tmp_prc;
TD Side
variables
String: sVal
Long String: lsVal
Sql Handle: hSql
Number: n
String: lsSqlStmt
Set lsSqlStmt = 'tmp_prc(sVal)'
Call SqlPLSQLCommand( hSql, lsSqlStmt )
! The value of sVal is 'AbcDef' too
Handling of a stored Oracle function return string value
General discussion forum about all databases other than SqlBase.
1 post
• Page 1 of 1
Handling of a stored Oracle function return string value
Post by Andras » 22 Apr 2015, 12:31
1 post
• Page 1 of 1
Return to “General Discussion”
Jump to
- General
- ↳ OpenText Gupta Announcements & News
- ↳ General Discussion
- ↳ Forum Discussion
- ↳ Tools & Samples
- ↳ Enhancement suggestions
- ↳ Jobs / Promotions / Marketing
- Team Developer 7.x
- ↳ General Discussion
- ↳ Bug Reports
- Team Developer 5.x and 6.x
- ↳ General Discussion
- ↳ Bug Reports
- Version independent Q & A (and older ANSI versions up to v4.2)
- ↳ General Discussion (TD version independent, non specific)
- ↳ Bug Reports (TD 4.2 and older)
- TD Mobile
- ↳ General Discussion
- ↳ Tools & Samples
- ↳ Bug Reports
- SqlBase & Connectivity
- ↳ SqlBase General Discussion
- ↳ SqlBase Bug Reports
- ↳ Other databases (Oracle, Sybase, SQL Server, MySql, PostgreSQL etc)
- ↳ General Discussion
- ↳ Bug Reports
- Report Builder
- ↳ General Discussion
- ↳ Bug Reports
- Newsgroups ( newsgroup.guptaworldwide.com & talkto.guptaworldwide.com )
- ↳ Gupta newsgroups/usenet (years 1995-2010)
- ↳ comp.databases.gupta
- ↳ advanced.programming
- ↳ gupta.bugreport
- ↳ gupta.faq
- ↳ gupta.jobnet
- ↳ gupta.marketing
- ↳ gupta.wishlist
- ↳ forum.sqlbase
- ↳ forum.sqlhost
- ↳ forum.sqlwindows
- ↳ td.cdk
- ↳ td.connectivity
- ↳ td.development
- ↳ td.reportbuilder
- ↳ td.sourcecode
- ↳ td.tom
- ↳ td.web
- ↳ 3rdparty.tools
- Community Links
- ↳ Team Developer WIKI
- ↳ Team Developer Sample Vault
- ↳ OpenText Forum
- ↳ Other web resources
- ↳ LinkedIn Networking Group
- ↳ Thomas Uttendorfers blog
- ↳ MICSTO
- ↳ Narod
- ↳ Christian Schubert
- ↳ Ivano Osti
- ↳ CMH.Tools
- ↳ YouTube channel: TD Wiki
- ↳ YouTube channel: OpenText Gupta
- ↳ Facebook: OpenText Gupta
- ↳ Tek-Tips - SqlBase
- ↳ Tek-Tips - Centura solutions
Who is online
Users browsing this forum: [Ccbot] and 1 guest