dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlArray Structure / CreateEmptyArray Method
The PgSqlType of the array elements.

In This Topic
CreateEmptyArray Method
In This Topic
Creates a new instance of PgSqlArray that represents an empty array.
Syntax
'Declaration
 
Public Shared Function CreateEmptyArray( _
   ByVal type As PgSqlType _
) As PgSqlArray
 

Parameters

type
The PgSqlType of the array elements.

Return Value

Returns a new instance of PgSqlArray that represents an empty array of given type.
Remarks
Empty array is PgSqlArray with Rank=0 and zero count of elements. But keep in mind that empty PgSqlArray is not equal to Null. When you post data at the PostgreSQL database, Null is interpreted as db null, while empty PgSqlArray is interpreted as an empty value of the PostgreSQL array data type.
See Also