MySQLTalk.org Forum Index MySQLTalk.org
MYSQL discussions groups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

jdbcCompliantTruncation

 
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> MySQL and Java
View previous topic :: View next topic  
Author Message
rvw
Guest





PostPosted: Wed Aug 03, 2005 1:40 pm    Post subject: jdbcCompliantTruncation Reply with quote



It is my understanding that ther is a setting somewhere called jdbcCompliantTruncation

This setting can be set to True or False.
I would like to know where this setting is, so that I may change it.


Back to top
Ronald Boettcher
Guest





PostPosted: Wed Aug 03, 2005 3:30 pm    Post subject: Re: jdbcCompliantTruncation Reply with quote



rvw schrieb:
Quote:
It is my understanding that ther is a setting somewhere called jdbcCompliantTruncation

This setting can be set to True or False.
I would like to know where this setting is, so that I may change it.



There are at least two alternatives:

1. per URL:

connectPath =
"jdbc:mysql://<hostname>:3306/<dbname>?jdbcCompliantTruncation=true&<param_name>=<param_value>&...";

java.sql.Connection connection =
java.sql.DriverManager.getConnection(connectPath, connectName, connectPasswd);

------- or ------

connectPath =
"jdbc:mysql://<hostname>:3306/<dbname>?jdbcCompliantTruncation=true&user=<username>&password=<passowrd>&<param_name>=<param_value>&...";

java.sql.Connection connection =
java.sql.DriverManager.getConnection(connectPath);


2. per Properties:

java.util.Properties props = new Properties();
props.put("jdbcCompliantTruncation", "true");
props.put("user", connectName);
props.put("password", connectPasswd);

java.sql.Connection connection =
java.sql.DriverManager.getConnection("jdbc:mysql://<hostname>:3306/<dbname>",
props);


Ronald


Back to top
Display posts from previous:   
Post new topic   Reply to topic    MySQLTalk.org Forum Index -> MySQL and Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.