SQLSetVectorSize
Full Description
swirl
Syntax
  define external function SQLSetVectorSize
     (  read-only SQL_vector_type Vector,
        value counter BufferLength )


Purpose

Sets the data area size of the SQL_vector_type opaque data type variable. The existing buffer (if any) is freed.

Input arguments:

  • Vector. The SQL_vector_type variable to modify.
  • BufferLength. The new length of the data buffer, in bytes.

The following code demonstrates how to initialize and set SQL vector variables:

  local SQL_vector_type Vector
  local counter VectorSize

  set VectorSize to SQLGetVectorSize( Vector )
  output "Initial vector size = %d(VectorSize)%n"

  SQLSetVectorSize( Vector, 30 )

  set VectorSize to SQLGetVectorSize( Vector )
  output "Current vector size = %d(VectorSize)%n"

Copyright © OmniMark Technologies Corporation, 1988-1998.