odbc_specialcolumns

FunctionParams and return types changed in PHP 8.4

Retrieves special columns.

PHP 5
PHP 7
PHP 8.0
Improved
PHP 8.1
PHP 8.2-8.3
PHP 8.4
Improved
PHP 8.5
PHP 8.6

odbc_specialcolumns Function synopsis

odbc_specialcolumns(
    Odbc\Connection $odbc,
    int $type,
    ?string $catalog,
    string $schema,
    string $table,
    int $scope,
    int $nullable
  ): Odbc\Result|false

Parameters

$odbc

TypeOdbc\Connection

$type

Typeint

$catalog

Type?string

The catalog ("qualifier" in ODBC 2 parlance).

$schema

Typestring

The schema ("owner" in ODBC 2 parlance).

$table

Typestring

The table.

$scope

Typeint

The scope, which orders the result set. One of SQL_SCOPE_CURROW, SQL_SCOPE_TRANSACTION or SQL_SCOPE_SESSION.

$nullable

Typeint

Determines whether to return special columns that can have a NULL value. One of SQL_NO_NULLS or SQL_NULLABLE.

Return value

TypeOdbc\Result|false

Returns an ODBC result object or false on failure

The result set has the following columns:

Drivers can report additional columns.

Changes to the odbc_specialcolumns Function

PHP 8.4

  • Return type added: Odbc\Result|false
  • Parameter type added for parameter #1 ($odbc): Odbc\Connection
  odbc_specialcolumns(
-     $odbc,
+     Odbc\Connection $odbc,
      int $type,
      ?string $catalog,
      string $schema,
      string $table,
      int $scope,
      int $nullable
-   )
+   ): Odbc\Result|false

PHP 8.0

  • Parameter name of parameter #1 changed: $connection_id to $odbc
  • Parameter type added for parameter #2 ($type): int
  • Parameter name of parameter #3 changed: $qualifier to $catalog
  • Parameter type added for parameter #3 ($catalog): ?string
  • Parameter name of parameter #4 changed: $owner to $schema
  • Parameter type added for parameter #4 ($schema): string
  • Parameter type added for parameter #5 ($table): string
  • Parameter type added for parameter #6 ($scope): int
  • Parameter type added for parameter #7 ($nullable): int
  odbc_specialcolumns(
-     $connection_id,
+     $odbc,
-     $type,
+     int $type,
-     $qualifier,
+     ?string $catalog,
-     $owner,
+     string $schema,
-     $table,
+     string $table,
-     $scope,
+     int $scope,
-     $nullable
+     int $nullable
    )

odbc_specialcolumns Function Availability

PHP VersionAvailability
PHP 8.6Upcoming Release Yes
PHP 8.5Supported (Latest) Yes
PHP 8.4Supported Yes
PHP 8.3Security-Fixes Only Yes
PHP 8.2Security-Fixes Only Yes
PHP 8.1Unsupported Yes
PHP 8.0Unsupported Yes
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported Yes
PHP 5.4Unsupported Yes
PHP 5.3Unsupported Yes