<<

Contents

Search

>>

 

JDBC_COMMIT

 

Function

 

Syntax:

JDBC_COMMIT(<File Number>) or

JDBC_COMMIT(<Name of Index File>)

 

<File Number>

= <NUM-AUSDRUCK>

<Name of Index File>

= <INDEX FILE NAME>

 

Meaning:

Executes the commit command. The current transaction is finished.

 

JDBC_COMMIT returns the result 0 if no error occurred, otherwise -1.

 

If an error occurs, the variable OK contains the error number and the function ERRORTEXT$ returns the error text.

 

Parameter:

File Number

Number of JDBC database

Name of Index File

Name of Index File

 

Sample:

H% = JDBC_COMMIT(2)

IF H% = -1

THEN ERRORMES = ERRORTEXT$

ENDIF

 

See also:

JDBC_ROLLBACK

JDBC_SET_AUTOCOMMIT

JDBC_GET_DATABASE_NAME$