Information on JDBC driver src code, please help
От | Gulshan Babajee |
---|---|
Тема | Information on JDBC driver src code, please help |
Дата | |
Msg-id | 60BA566AF1B3934FA866BAC17483675943D14D@mail.parabolemaurice.com обсуждение исходный текст |
Ответы |
Re: Information on JDBC driver src code, please help
|
Список | pgsql-jdbc |
charSet
= StringThe character set to use for data sent to the database or recieved from the database. This property is only relevent for server versions less than or equal to 7.2. The 7.3 release was the first with multibyte support compiled by default and the driver uses its character set translation facilities instead of trying to do it itself.
allowEncodingChanges
= booleanWhen using the V3 protocol the driver monitors changes in certain server configuration parameters that should not be touched by end users. The
client_encoding
setting is set by the driver and should not be altered..............
{
// set encoding to be unicode; set datestyle; ensure autocommit is on
// (no-op on 7.4, but might be needed under 7.3)
// The begin/commit is to avoid leaving a transaction open if we're talking to a
// 7.3 server that defaults to autocommit = off.
Driver.debug("Switching to UNICODE client_encoding");
protoConnection.setEncoding(Encoding.getDatabaseEncoding("UNICODE"));
}
else
{
String dbEncoding = (results[1] == null ? null : protoConnection.getEncoding().decode(results[1]));
if (Driver.logDebug)
{
Driver.debug("Specified charset: " + charSet);
Driver.debug("Database encoding: " + dbEncoding);
}
{
// Explicitly specified encoding.
protoConnection.setEncoding(Encoding.getJVMEncoding(charSet));
}
else if (dbEncoding != null)
{
// Use database-supplied encoding.
protoConnection.setEncoding(Encoding.getDatabaseEncoding(dbEncoding));
}
else
{
// Fall back to defaults.
// XXX is this ever reached?
protoConnection.setEncoding(Encoding.defaultEncoding());
}
}
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006
В списке pgsql-jdbc по дате отправления:
Предыдущее
От: "rcolmegna@tiscali.it"Дата:
Сообщение: R: Re: CachedRowSet insertion problem with serial PK