Skip to content

Commit 052d66f

Browse files
Fixed keyset constant
1 parent 053513c commit 052d66f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/connect/php/cursor-types-pdo-sqlsrv-driver.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can request a dynamic, static, or keyset cursor by specifying `PDO::ATTR_CUR
3434

3535
- `PDO::SQLSRV_CURSOR_STATIC`
3636

37-
- `PDO::SQLSRV_CURSOR_KEYSET_DRIVEN`
37+
- `PDO::SQLSRV_CURSOR_KEYSET`
3838

3939
## PDO_SQLSRV and Client-Side Cursors
4040
Client-side cursors were added in version 3.0 of the [!INCLUDE[ssDriverPHP](../../includes/ssdriverphp_md.md)] and allow you to cache an entire result set in memory. One advantage is that the row count is available after a query is executed.

‎docs/connect/php/pdo-prepare.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The following table shows the possible values for `PDO::SQLSRV_ATTR_CURSOR_SCROL
5555
|---------|---------------|
5656
|PDO::SQLSRV_CURSOR_BUFFERED|Creates a client-side (buffered) static cursor, which buffers the result set in memory on the client machine.|
5757
|PDO::SQLSRV_CURSOR_DYNAMIC|Creates a server-side (unbuffered) dynamic cursor, which lets you access rows in any order and will reflect changes in the database.|
58-
|PDO::SQLSRV_CURSOR_KEYSET_DRIVEN|Creates a server-side keyset cursor. A keyset cursor does not update the row count if a row is deleted from the table (a deleted row is returned with no values).|
58+
|PDO::SQLSRV_CURSOR_KEYSET|Creates a server-side keyset cursor. A keyset cursor does not update the row count if a row is deleted from the table (a deleted row is returned with no values).|
5959
|PDO::SQLSRV_CURSOR_STATIC|Creates a server-side static cursor, which lets you access rows in any order but will not reflect changes in the database.<br /><br />`PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL` implies `PDO::SQLSRV_ATTR_CURSOR_SCROLL_TYPE => PDO::SQLSRV_CURSOR_STATIC`.|
6060

6161
You can close a PDOStatement object by calling `unset`:

0 commit comments

Comments
 (0)