Comments (6)
What is the concept here ? I don't believe the API allows you to set a schema so this would be a non-api method ?
from pgjdbc.
Dheerendra,
Is the need fulfilled by
Connection.setSchema(String)
for which an implementation is already provided since commit ea55458 (PR #154)?
Or is it a different matter there?
from pgjdbc.
@alexismeneses connection.setSchema is fine, but I want to set it at the time of connection itself as a property, so it should get the schema at the time of connections and not after connecting. It can be defined as a property and then can be passed to connection Drivermanager.getConnection(url,properties)
from pgjdbc.
That's a little different than exposing a method.
What you really want is the default schema to be set.
Dave
Dave Cramer
On 20 May 2014 10:51, Dheerendra Rathor [email protected] wrote:
@alexismeneses https://github.com/alexismeneses connection.setSchema is
fine, but I want to set it at the time of connection itself as a property,
so it should get the schema at the time of connections and not after
connecting. It can be defined as a property and then can be passed to
connection Drivermanager.getConnection(url,properties)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/155#issuecomment-43636286
.
from pgjdbc.
Are any other JDBC driver out there implementing such a connection property? If so, what's the most common name for it?
Note that it will only save a method call in Java but it won't change the need to internally make a call to the backend after the connection has been opened.
As I understand it, a useful case would to make some schema unaware Java/JDBC programs to use a particular schema without even knowing it, just by being given a magic jdbc url property. It could be a nice feature.
from pgjdbc.
Dave, this one should be fixed now (commit d2c1ef7 PR #156).
@DheerendraRathor, the name of the property is currentSchema
, it's merged into the master.
from pgjdbc.
Related Issues (20)
- capitalization matters for PGInterval HOT 1
- PgStatement.executeWithFlags(sql, QueryMode.Simple) does not execute in Simple mode
- SQLWarnings returned on successful SQL statements HOT 28
- Provide Enum implementation of java.sql.SQLType interface? HOT 1
- Using Flink Datastream API to read and write PostgreSQL
- "ERROR: SET TRANSACTION ISOLATION LEVEL must not be called in a subtransaction" with autosave HOT 2
- SSLSocket duplex close failed (again) HOT 5
- Trying to update table using PreparadStatement, But parameters are generated inside a Parentheses HOT 1
- INSERT Java Boolean Type into a database BIT type will result in an incompatible type error. HOT 5
- Authentication SSL Mechanism HOT 20
- Query interceptors HOT 4
- Authentication failed SSL error HOT 1
- Memory Consumption, binary transfer bug HOT 5
- "Unexpected packet type during copy" when network is pool HOT 2
- Connect Java with PostgreSQL (16.3) using SSPI authentication HOT 3
- Inconsistent SQL execution with "unsupported format code" error in PostgreSQL HOT 8
- Request for new release 42.7.4 HOT 1
- SSL connection is not established HOT 22
- BlobInputStream#mark/reset caches position within a large object, however it should buffer the data instead HOT 3
- JDBC Driver Ignoring Fetch Size: Full SELECT Result Loaded into RAM, Causing Heap Overflow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgjdbc.