forked from microsoft/mssql-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 1
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 microsoft#345 from Microsoft/metadataCaching
Metadata caching
- Loading branch information
Showing
23 changed files
with
4,254 additions
and
395 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ local.properties | |
.classpath | ||
.vscode/ | ||
.settings/ | ||
.gradle/ | ||
.loadpath | ||
|
||
# External tool builders | ||
|
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
28 changes: 28 additions & 0 deletions
28
src/main/java/com/microsoft/sqlserver/jdbc/ParsedSQLMetadata.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,28 @@ | ||
/* | ||
* Microsoft JDBC Driver for SQL Server | ||
* | ||
* Copyright(c) 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.jdbc; | ||
|
||
/** | ||
* Used for caching of meta data from parsed SQL text. | ||
*/ | ||
final class ParsedSQLCacheItem { | ||
/** The SQL text AFTER processing. */ | ||
String processedSQL; | ||
int parameterCount; | ||
String procedureName; | ||
boolean bReturnValueSyntax; | ||
|
||
ParsedSQLCacheItem(String processedSQL, int parameterCount, String procedureName, boolean bReturnValueSyntax) { | ||
this.processedSQL = processedSQL; | ||
this.parameterCount = parameterCount; | ||
this.procedureName = procedureName; | ||
this.bReturnValueSyntax = bReturnValueSyntax; | ||
} | ||
} | ||
|
Oops, something went wrong.