cursor_name()

cursor_name() takes as its argument the SQL identifier of an UPDATE or DELETE cursor, a CURSOR variable, or the identifier of a prepared statement, and returns the mingled name:

cursor_name("cursor_id")

The compiler will mingle a cursor or prepared statement identifier, using a constant algorithm. This results in a new name, which will always be 18 characters long. The first half is derived from the user supplied name, and the second half, from the current system clock; because of this the names are guaranteed to be unique to the 4GL modules which reference them:

CALL cursor_name("curs") RETURNING c_name

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.