-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from v-afrafi/lobs_tests
Lobs tests
- Loading branch information
Showing
34 changed files
with
1,729 additions
and
59 deletions.
There are no files selected for viewing
593 changes: 593 additions & 0 deletions
593
src/test/java/com/microsoft/sqlserver/jdbc/unit/lobs/lobsTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/test/java/com/microsoft/sqlserver/testframework/DBCoercion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Microsoft JDBC Driver for SQL Server | ||
* | ||
* Copyright(c) 2016 Microsoft Corporation All rights reserved. | ||
* | ||
* This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information. | ||
*/ | ||
package com.microsoft.sqlserver.testframework; | ||
|
||
import java.util.BitSet; | ||
|
||
public class DBCoercion { | ||
Class type = null; | ||
protected BitSet flags = new BitSet(); | ||
protected String name = null; | ||
// Flags | ||
|
||
public static final int GET = 1; | ||
public static final int UPDATE = 2; | ||
public static final int SET = 3; | ||
public static final int SETOBJECT = 4; | ||
public static final int REG = 5; | ||
public static final int GETPARAM = 6; | ||
public static final int UPDATEOBJECT = 7; | ||
public static final int ALL = 8; | ||
|
||
public static final int STREAM = 9; | ||
public static final int CHAR = 10; | ||
public static final int NCHAR = 11; | ||
public static final int ASCII = 12; | ||
|
||
/** | ||
* | ||
* @param type | ||
*/ | ||
public DBCoercion(Class type) { | ||
this(type, new int[] {GET}); | ||
} | ||
|
||
/** | ||
* | ||
* @param type | ||
* @param tempflags | ||
*/ | ||
public DBCoercion(Class type, | ||
int[] tempflags) { | ||
name = type.toString(); | ||
type = type; | ||
for (int i = 0; i < tempflags.length; i++) | ||
flags.set(tempflags[i]); | ||
} | ||
|
||
/** | ||
* @return type | ||
*/ | ||
public Class type() { | ||
return type; | ||
} | ||
|
||
/** | ||
* @return | ||
*/ | ||
public BitSet flags() { | ||
return flags; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/test/java/com/microsoft/sqlserver/testframework/DBCoercions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Microsoft JDBC Driver for SQL Server | ||
* | ||
* Copyright(c) 2016 Microsoft Corporation All rights reserved. | ||
* | ||
* This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information. | ||
*/ | ||
package com.microsoft.sqlserver.testframework; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* DBCoercions | ||
* | ||
*/ | ||
public class DBCoercions extends DBItems { | ||
|
||
/** | ||
* constructor | ||
*/ | ||
public DBCoercions() { | ||
coercionsList = new ArrayList<DBCoercion>(); | ||
} | ||
|
||
public DBCoercions(DBCoercion coercion) { | ||
this.add(coercion); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.