<<

Contents

Search

>>

 

JDBC_ROLLBACK

 

 

Function

 

 

Syntax:

JDBC_ROLLBACK(<File Number>) or

JDBC_ROLLBACK(<Name of Index File>)

 

<File Number>

= <NUM-AUSDRUCK>

<Name of Index File>

= <INDEX FILE NAME>

 

Meaning:

Executes the rollback command. The current transaction is aborted.

 

JDBC_ROLLBACK returns the result 0 if no error occurred, otherwise –1.

 

If an error occurs, the variable OK has the value 1700 and the function JDBC_GET_LAST_ERROR$ returns the error text.

 

Parameter:

File Number

Number of JDBC database

Name of Index File

Name of Index File

 

Sample:

H% = JDBC_ROLLBACK(SALES)

IF H% = -1

THEN ERRORMES = JDBC_GET_LAST_ERROR$

ENDIF

 

See also:

JDBC_COMMIT

JDBC_SET_AUTOCOMMIT