Skip to content

Commit a51ff11

Browse files
committed
Add contains(String) overload to MssqlRowMetadata.
Add column lookup shortcut in preparation of upcoming SPI changes. Signed-off-by: Mark Paluch <mpaluch@vmware.com>
1 parent 6ecd66d commit a51ff11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/io/r2dbc/mssql/MssqlRowMetadata.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,16 @@ public boolean isEmpty() {
121121
public boolean contains(Object o) {
122122

123123
if (o instanceof String) {
124-
return this.findColumn((String) o) != null;
124+
return contains((String) o);
125125
}
126126

127127
return false;
128128
}
129129

130+
public boolean contains(String columnName) {
131+
return this.findColumn(columnName) != null;
132+
}
133+
130134
@Override
131135
public boolean containsAll(Collection<?> c) {
132136

0 commit comments

Comments
 (0)