odbc_foreignkeys
Function • Params and return types changed in PHP 8.4
Retrieves a list of foreign keys.
odbc_foreignkeys Function synopsis
odbc_foreignkeys(
Odbc\Connection $odbc,
?string $pk_catalog,
string $pk_schema,
string $pk_table,
string $fk_catalog,
string $fk_schema,
string $fk_table
): Odbc\Result|false
Parameters
$odbc
TypeOdbc\Connection
$pk_catalog
Type?string
The catalog ('qualifier' in ODBC 2 parlance) of the primary key table.
$pk_schema
Typestring
The schema ('owner' in ODBC 2 parlance) of the primary key table.
$pk_table
Typestring
The primary key table.
$fk_catalog
Typestring
The catalog ('qualifier' in ODBC 2 parlance) of the foreign key table.
$fk_schema
Typestring
The schema ('owner' in ODBC 2 parlance) of the foreign key table.
$fk_table
Typestring
The foreign key table.
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_foreignkeys Function
PHP 8.4
- Return type added:
Odbc\Result|false - Parameter type added for parameter #1 (
$odbc):Odbc\Connection
odbc_foreignkeys(
- $odbc,
+ Odbc\Connection $odbc,
?string $pk_catalog,
string $pk_schema,
string $pk_table,
string $fk_catalog,
string $fk_schema,
string $fk_table
- )
+ ): Odbc\Result|false PHP 8.0
- Parameter name of parameter #1 changed:
$connection_idto$odbc - Parameter name of parameter #2 changed:
$pk_qualifierto$pk_catalog - Parameter type added for parameter #2 (
$pk_catalog):?string - Parameter name of parameter #3 changed:
$pk_ownerto$pk_schema - Parameter type added for parameter #3 (
$pk_schema):string - Parameter type added for parameter #4 (
$pk_table):string - Parameter name of parameter #5 changed:
$fk_qualifierto$fk_catalog - Parameter type added for parameter #5 (
$fk_catalog):string - Parameter name of parameter #6 changed:
$fk_ownerto$fk_schema - Parameter type added for parameter #6 (
$fk_schema):string - Parameter type added for parameter #7 (
$fk_table):string
odbc_foreignkeys(
- $connection_id,
+ $odbc,
- $pk_qualifier,
+ ?string $pk_catalog,
- $pk_owner,
+ string $pk_schema,
- $pk_table,
+ string $pk_table,
- $fk_qualifier,
+ string $fk_catalog,
- $fk_owner,
+ string $fk_schema,
- $fk_table
+ string $fk_table
) odbc_foreignkeys Function Availability
odbc_foreignkeys Function Availability| PHP Version | Availability |
|---|---|
| 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 |