Skip to content

Commit 41fb9b9

Browse files
author
ickzon
committed
o Fixed Sybase ASE compatibility of JUnit test.
git-svn-id: http://svn.code.sf.net/p/jtds/code/branches/jTDS%201.3%20(stable)@1284 97a8069c-bbaa-4fa2-9e49-561d8e0b19ef
1 parent 3380d41 commit 41fb9b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/net/sourceforge/jtds/jdbc/StatementTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void testBug500()
100100
stmt.executeUpdate( "insert into #Bug500 values(" + i + ")" );
101101
}
102102

103-
stmt.executeUpdate( "set SHOWPLAN_ALL on" );
103+
stmt.executeUpdate( "set " + ( isMSSQL() ? "SHOWPLAN_ALL" : "SHOWPLAN" ) + " on" );
104104
// or stmt.execute( "set SHOWPLAN_ALL on" ); - doesn't matters
105105

106106
stmt.execute( "select top 5 * from #Bug500" );

0 commit comments

Comments
 (0)