-
Notifications
You must be signed in to change notification settings - Fork 618
[jdbc-v2] Implements java.sql.PreparedStatement#getMetaData
#2311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fea9b35
Code cleanup. Implemented dummy parameter result set. Drafted prepare…
chernser eb0762f
Reworked some schema staff
chernser 07b8b1f
Merge branch 'main' into jdbc_prepared_stmt_metadata
chernser 4a93d5d
Implemented getting prepared statement metadata
chernser 6548efb
fixed tests and removed unused code
chernser 216b9f1
fixed minor issues
chernser c51f367
fixed javadoc
chernser cd11f52
fixing coverage report
chernser d3edaff
fixing code coverage
chernser 65572ef
push build
chernser 3824774
fixed bug with replacing literal '?' with NULL
chernser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
74 changes: 37 additions & 37 deletions
74
jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/ClientInfoProperties.java
This file contains hidden or 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 |
|---|---|---|
| @@ -1,37 +1,37 @@ | ||
| package com.clickhouse.jdbc.internal; | ||
| public enum ClientInfoProperties { | ||
| APPLICATION_NAME("ApplicationName", 255, "", "Client application name."), | ||
| ; | ||
| private String key; | ||
| private int maxValue; | ||
| private String defaultValue; | ||
| private String description; | ||
| ClientInfoProperties(String key, int maxValue, String defaultValue, String description) { | ||
| this.key = key; | ||
| this.maxValue = maxValue; | ||
| this.defaultValue = defaultValue; | ||
| this.description = description; | ||
| } | ||
| public String getKey() { | ||
| return key; | ||
| } | ||
| public int getMaxValue() { | ||
| return maxValue; | ||
| } | ||
| public String getDefaultValue() { | ||
| return defaultValue; | ||
| } | ||
| public String getDescription() { | ||
| return description; | ||
| } | ||
| } | ||
| package com.clickhouse.jdbc.internal; | ||
|
|
||
| public enum ClientInfoProperties { | ||
|
|
||
| APPLICATION_NAME("ApplicationName", 255, "", "Client application name."), | ||
| ; | ||
|
|
||
| private String key; | ||
| private int maxValue; | ||
|
|
||
| private String defaultValue; | ||
|
|
||
| private String description; | ||
|
|
||
| ClientInfoProperties(String key, int maxValue, String defaultValue, String description) { | ||
| this.key = key; | ||
| this.maxValue = maxValue; | ||
| this.defaultValue = defaultValue; | ||
| this.description = description; | ||
| } | ||
|
|
||
| public String getKey() { | ||
| return key; | ||
| } | ||
|
|
||
| public int getMaxValue() { | ||
| return maxValue; | ||
| } | ||
|
|
||
| public String getDefaultValue() { | ||
| return defaultValue; | ||
| } | ||
|
|
||
| public String getDescription() { | ||
| return description; | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding inline documentation clarifying that replacing question marks with 'NULL' is solely used for schema inference. This will help future maintainers understand potential limitations when the SQL contains literal question marks.