Skip to content

Commit ae2616d

Browse files
committed
enable update counts for SELECT INTO statements
1 parent 369e5e0 commit ae2616d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/StreamDone.java

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class StreamDone extends StreamPacket {
2222
* the current command (See Appendix A of TDS spec)
2323
*/
2424
static final short CMD_SELECT = 0xC1;
25+
static final short CMD_SELECTINTO = 0xC2;
2526
static final short CMD_INSERT = 0xC3;
2627
static final short CMD_DELETE = 0xC4;
2728
static final short CMD_UPDATE = 0xC5;
@@ -224,6 +225,7 @@ final long getUpdateCount() {
224225
case CMD_DELETE:
225226
case CMD_UPDATE:
226227
case CMD_MERGE:
228+
case CMD_SELECTINTO:
227229
return updateCountIsValid() ? rowCount : -1;
228230

229231
default: // DDL assumed
@@ -238,6 +240,7 @@ final boolean cmdIsDMLOrDDL() {
238240
case CMD_DELETE:
239241
case CMD_UPDATE:
240242
case CMD_MERGE:
243+
case CMD_SELECTINTO:
241244

242245
// DDL
243246
// Lifted from SQL Server 2005 Books Online at:

0 commit comments

Comments
 (0)