|
|
Choosing A Webhost: |
setMaxFieldSize: msg#00103db.postgresql.jdbc
Can you someone tell me why we do not implement this? The comment does not explain why the "NOT!". All we have to do is to properly truncate the received values. If this is a good programming practice or not it is debatable, but it is in the JDBC standard anyway. It may even be useful for some applications out there. /* * Sets the maxFieldSize - NOT! - We throw an SQLException just * to inform them to stop doing this. * * @param max the new max column size limit; zero means unlimited * @exception SQLException if a database access error occurs */ public void setMaxFieldSize(int max) throws SQLException { throw new PSQLException("postgresql.stat.maxfieldsize"); } -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@xxxxxxxxxx 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9 ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Urgent : JDBC problem in PostgreSql for Linux, Fernando Nasser |
|---|---|
| Next by Date: | Re: maxconnection, scott.marlowe |
| Previous by Thread: | Problems with writing EUC-JP/Unicode to console or file, Jean-Christian Imbeault |
| Next by Thread: | Re: setMaxFieldSize, Barry Lind |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |