Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OPEN-FOR, varchar and nvarchar (more questions)

542526May 6 2009 — edited May 6 2009
hello


create or replace function fnEnumSystemUser
+(+
+FirstNameFilter nvarchar2,+
+...+
+)+
RETURN xxxxx.cursorType /* REF-CURSOR */
AS
+strSQL varchar(2000);+

SystemUserCursor xxxxxcursorType;
BEGIN
+...+
+open SystemUserCursor FOR strSQL using FirstNameFilter;+
+...+

Notice that FirstNameFilter type = nvarchar2 and strSQL type=varchar - if "FirstNameFilter" contains Asian character, then I presume it'd become jibberish in "strSQL"? And also lost any unicode data in OPEN-FOR operation?

(Actually I don't know what exactly will happen, at least not until I test with the app which is not yet read. And you can't call the function with unicode character with TOAD and didnt manage to get around test this with SQL*Plus yet.)

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2009
Added on May 6 2009
2 comments
504 views