Skip to content

Commit 6f2fb59

Browse files
author
MightyPen
committed
PoliCheck fixes, for six characters 'a hole', only to prevent every PoliCheck rerun from re-reporting this distracting false positives.
1 parent dc1f5bd commit 6f2fb59

4 files changed

Lines changed: 23 additions & 15 deletions

File tree

‎docs/connect/jdbc/reference/deleterow-method-sqlserverresultset.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "deleteRow Method (SQLServerResultSet) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "01/19/2017"
4+
ms.date: "01/20/2017"
55
ms.prod: sql
66
ms.prod_service: connectivity
77
ms.reviewer: ""
@@ -18,14 +18,14 @@ ms.author: genemi
1818
manager: craigg
1919
---
2020
# deleteRow Method (SQLServerResultSet)
21+
2122
[!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)]
2223

2324
Deletes the current row from this[SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object and from the underlying database.
2425

2526
## Syntax
2627

27-
```
28-
28+
```cpp
2929
public void deleteRow()
3030
```
3131

@@ -37,7 +37,7 @@ public void deleteRow()
3737

3838
This method cannot be called when the cursor is on the insert row.
3939

40-
When using keyset cursors, this method leaves a hole in the result set. You can test for this hole by using the [rowDeleted](../../../connect/jdbc/reference/rowdeleted-method-sqlserverresultset.md) method. The row numbers of the rows in the result set do not change.
40+
When using keyset cursors, this method leaves a gap in the result set. You can test for this gap by using the [rowDeleted](../../../connect/jdbc/reference/rowdeleted-method-sqlserverresultset.md) method. The row numbers of the rows in the result set do not change.
4141

4242
## See Also
4343
[SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md)

‎docs/connect/jdbc/reference/deletesaredetected-method-sqlserverdatabasemetadata.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "deletesAreDetected Method (SQLServerDatabaseMetaData) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "01/19/2017"
4+
ms.date: "01/20/2017"
55
ms.prod: sql
66
ms.prod_service: connectivity
77
ms.reviewer: ""
@@ -18,14 +18,14 @@ ms.author: genemi
1818
manager: craigg
1919
---
2020
# deletesAreDetected Method (SQLServerDatabaseMetaData)
21+
2122
[!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)]
2223

2324
Retrieves whether or not a visible row delete can be detected by calling the [rowDeleted](../../../connect/jdbc/reference/rowdeleted-method-sqlserverresultset.md) method of the [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) class.
2425

2526
## Syntax
2627

27-
```
28-
28+
```cpp
2929
public boolean deletesAreDetected(int type)
3030
```
3131
@@ -53,7 +53,7 @@ public boolean deletesAreDetected(int type)
5353
TYPE_SS_SCROLL_DYNAMIC
5454
5555
## Return Value
56-
**true** if a hole replaces the deleted row. **false** if the deleted row is removed.
56+
**true** if a gap replaces the deleted row. **false** if the deleted row is removed.
5757
5858
When using the [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)] with a [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] database, this method returns **true** for TYPE_SS_SCROLL_KEYSET cursors and **false** for all other result set types.
5959

‎docs/odbc/reference/develop-app/mixed-cursors.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Mixed Cursors | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "01/19/2017"
4+
ms.date: "01/20/2017"
55
ms.prod: sql
66
ms.prod_service: connectivity
77
ms.reviewer: ""
@@ -20,12 +20,13 @@ ms.author: genemi
2020
manager: craigg
2121
---
2222
# Mixed Cursors
23+
2324
A mixed cursor is a combination of a keyset-driven cursor and a dynamic cursor. It is used when the result set is too large to reasonably save keys for the entire result set. Mixed cursors are implemented by creating a keyset that is smaller than the entire result set but larger than the rowset.
2425

2526
As long as the application scrolls within the keyset, the behavior is keyset-driven. When the application scrolls outside the keyset, the behavior is dynamic: The cursor fetches the requested rows and creates a new keyset. After the new keyset is created, the behavior reverts to keyset-driven within that keyset.
2627

2728
For example, suppose a result set has 1,000 rows and uses a mixed cursor with a keyset size of 100 and a rowset size of 10. When the first rowset is fetched, the cursor creates a keyset consisting of the keys for the first 100 rows. It then returns the first 10 rows, as requested.
2829

29-
Now suppose another application deletes rows 11 and 101. If the cursor attempts to retrieve row 11, it will encounter a hole because it has a key for this row but no row exists; this is keyset-driven behavior. If the cursor attempts to retrieve row 101, the cursor will not detect that the row is missing because it does not have a key for the row. Instead, it will retrieve what was previously row 102. This is dynamic cursor behavior.
30+
Now suppose another application deletes rows 11 and 101. If the cursor attempts to retrieve row 11, it will encounter a gap because it has a key for this row but no row exists; this is keyset-driven behavior. If the cursor attempts to retrieve row 101, the cursor will not detect that the row is missing because it does not have a key for the row. Instead, it will retrieve what was previously row 102. This is dynamic cursor behavior.
3031

3132
A mixed cursor is equivalent to a keyset-driven cursor when the keyset size is equal to the result set size. A mixed cursor is equivalent to a dynamic cursor when the keyset size is equal to 1.

‎docs/relational-databases/spatial/polygon.md‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Polygon | Microsoft Docs"
3-
ms.date: "03/06/2017"
3+
ms.date: "03/07/2017"
44
ms.prod: sql
55
ms.prod_service: "database-engine, sql-database"
66
ms.reviewer: ""
@@ -16,7 +16,9 @@ manager: craigg
1616
monikerRange: "=azuresqldb-current||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current"
1717
---
1818
# Polygon
19+
1920
[!INCLUDE[appliesto-ss-asdb-xxxx-xxx-md](../../includes/appliesto-ss-asdb-xxxx-xxx-md.md)]
21+
2022
A **Polygon** is a two-dimensional surface stored as a sequence of points defining an exterior bounding ring and zero or more interior rings.
2123

2224
## Polygon instances
@@ -101,11 +103,13 @@ SELECT @g1.STIsValid(), @g2.STIsValid(), @g3.STIsValid(), @g4.STIsValid(), @g5.S
101103

102104
## Examples
103105
### Example A.
104-
The following example creates a simple `geometry``Polygon` instance with a hole and SRID 10.
106+
The following example creates a simple `geometry` `Polygon` instance with a gap and SRID 10.
105107

106108
```sql
107109
DECLARE @g geometry;
108-
SET @g = geometry::STPolyFromText('POLYGON((0 0, 0 3, 3 3, 3 0, 0 0), (1 1, 1 2, 2 1, 1 1))', 10);
110+
SET @g = geometry::STPolyFromText(
111+
'POLYGON((0 0, 0 3, 3 3, 3 0, 0 0), (1 1, 1 2, 2 1, 1 1))',
112+
10);
109113
```
110114

111115

@@ -114,7 +118,9 @@ An instance that is not valid may be entered and converted to a valid `geometry`
114118

115119
```sql
116120
DECLARE @g geometry;
117-
SET @g = geometry::Parse('POLYGON((1 0, 0 1, 1 2, 2 1, 1 0), (2 0, 1 1, 2 2, 3 1, 2 0))');
121+
SET @g = geometry::Parse(
122+
'POLYGON((1 0, 0 1, 1 2, 2 1, 1 0), (2 0, 1 1, 2 2, 3 1, 2 0))'
123+
);
118124
```
119125

120126
### Example C.
@@ -128,7 +134,8 @@ SELECT @g.ToString();
128134
The `geometry` instance returned from the above example is a `MultiPolygon`.
129135

130136
```sql
131-
MULTIPOLYGON (((2 0, 3 1, 2 2, 1.5 1.5, 2 1, 1.5 0.5, 2 0)), ((1 0, 1.5 0.5, 1 1, 1.5 1.5, 1 2, 0 1, 1 0)))
137+
MULTIPOLYGON (((2 0, 3 1, 2 2, 1.5 1.5, 2 1, 1.5 0.5, 2 0)),
138+
((1 0, 1.5 0.5, 1 1, 1.5 1.5, 1 2, 0 1, 1 0)))
132139
```
133140

134141
### Example D.

0 commit comments

Comments
 (0)