|
|
Sponsor |
Re: setBoolean with BIT column: msg#00166db.postgresql.jdbc
Kevin, BOOLEAN is the correct data type for the table. BIT is not. The BIT datatype is a variable length datatype. So you can create a table like the following: create table testbit (a bit(10)); So the column a is of datatype bit, but of length 10 (i.e. 10 bits). Clearly setBoolean() isn't the correct method to be using to set the BIT value in this case. In postgres SQL_TYPES.BIT = the BOOLEAN datatype. Where the BIT datatype has different symantics than SQL_TYPES.BIT. thanks, --Barry Kevin Schmidt wrote: Hi, ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: NOTICE causing SQLException, Barry Lind |
|---|---|
| Next by Date: | Re: [GENERAL] Postgres 7.3b1 + JDBC3 (2002-09-05) truncates SQL, Barry Lind |
| Previous by Thread: | setBoolean with BIT column, Kevin Schmidt |
| Next by Thread: | Re: [GENERAL] Postgres 7.3b1 + JDBC3 (2002-09-05) truncates SQL, 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|