UNSAFE MODULE; FROM SQLtypes IMPORT SQLRETURN, SQLHSTMT, SQLUSMALLINT; PROCEDURE SQLext SQL_LEN_DATA_AT_EXEC (length: INTEGER): INTEGER = BEGIN RETURN -length + SQL_LEN_DATA_AT_EXEC_OFFSET; END SQL_LEN_DATA_AT_EXEC; PROCEDURESQL_POSITION_TO (hstmt: SQLHSTMT; irow: SQLUSMALLINT): SQLRETURN = BEGIN RETURN SQLSetPos (hstmt, irow, SQL_POSITION, SQL_LOCK_NO_CHANGE); END SQL_POSITION_TO; PROCEDURESQL_LOCK_RECORD (hstmt: SQLHSTMT; irow, fLock: SQLUSMALLINT): SQLRETURN = BEGIN RETURN SQLSetPos (hstmt, irow, SQL_POSITION, fLock); END SQL_LOCK_RECORD; PROCEDURESQL_REFRESH_RECORD (hstmt: SQLHSTMT; irow, fLock: SQLUSMALLINT): SQLRETURN = BEGIN RETURN SQLSetPos (hstmt, irow, SQL_REFRESH, fLock); END SQL_REFRESH_RECORD; PROCEDURESQL_UPDATE_RECORD (hstmt: SQLHSTMT; irow: SQLUSMALLINT): SQLRETURN = BEGIN RETURN SQLSetPos (hstmt, irow, SQL_UPDATE, SQL_LOCK_NO_CHANGE); END SQL_UPDATE_RECORD; PROCEDURESQL_DELETE_RECORD (hstmt: SQLHSTMT; irow: SQLUSMALLINT): SQLRETURN = BEGIN RETURN SQLSetPos (hstmt, irow, SQL_DELETE, SQL_LOCK_NO_CHANGE); END SQL_DELETE_RECORD; PROCEDURESQL_ADD_RECORD (hstmt: SQLHSTMT; irow: SQLUSMALLINT): SQLRETURN = BEGIN RETURN SQLSetPos (hstmt, irow, SQL_ADD, SQL_LOCK_NO_CHANGE); END SQL_ADD_RECORD; BEGIN END SQLext.