Codota Logo
ConnectionFactoryImpl.runSetupQuery
Code IndexAdd Codota to your IDE (free)

How to use
runSetupQuery
method
in
org.postgresql.core.v2.ConnectionFactoryImpl

Best Java code snippets using org.postgresql.core.v2.ConnectionFactoryImpl.runSetupQuery (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private void runInitialQueries(ProtocolConnectionImpl protoConnection, String charSet, Logger logger) throws SQLException, IOException {
  byte[][] results = runSetupQuery(protoConnection, "set datestyle = 'ISO'; select version(), case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end", true);
    runSetupQuery(protoConnection, sql, false);
    protoConnection.setEncoding(Encoding.getDatabaseEncoding("UNICODE"));
    results = runSetupQuery(protoConnection, "select current_setting('standard_conforming_strings')", true);
    String value = protoConnection.getEncoding().decode(results[0]);
    protoConnection.setStandardConformingStrings(value.equalsIgnoreCase("on"));
org.postgresql.core.v2ConnectionFactoryImplrunSetupQuery

Popular methods of ConnectionFactoryImpl

  • doAuthentication
  • enableSSL
  • readStartupMessages
  • runInitialQueries
  • sendStartupPacket

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now