<<

Contents

Search

>>

 

JDBC_SET_CONCURRENCY

 

 

Function

 

 

Syntax:

JDBC_SET_CONCURRENCY(<File Number>,<Mode>) or

JDBC_SET_CONCURRENCY(<Name of Index File>,<Mode>)

 

<File Number>

= <NUM-EXPRESSION>

<Name of Index File>

= <INDEX FILE NAME>

<Mode>

= <NUM-EXPRESSION>

 

 

Meaning:

Defines the concurrency mode.

 

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

 

If an error occurs, the variable OK contains the error number 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

 

Mode

Concurrency :

1: CONCUR_READ_ONLY

otherwise: CONCUR_UPDATABLE

 

Sample:

H% = JDBC_SET_CONCURRENCY(SALES,2)

IF H% = -1

THEN ERRORMES = JDBC_GET_LAST_ERROR$

ENDIF

 

See also:

JDBC_SET_ISOLATION

JDBC_DRIVER

JDBC_DATABASE

JDBC_TABLE

JDBC_USERID

JDBC_PASSWORD

JDBC_GET_DATABASE_NAME$