|
|
Sponsor |
Re: TimeStamp problem...: msg#00234db.postgresql.jdbc
"Vitali Petrov" <vitalipetrov@xxxxxxxxxxx> writes: > Then I insert new values with timestamp into table I get an error: > Can anyone tell why? > Code: > PreparedStatement newPStat ... > newPStat.setTimestamp(1, Timestamp.valueOf("2003-01-21 12:25:14")); > newPStat.executeUpdate(); > Error: > java.sql.SQLException: ERROR: pg_atoi: error in "2003-01-21 > 12:25:14.000000+02": can't parse "-01-21 12:25:14.000000+02" Since the complaint is coming from pg_atoi, it would seem that this string is being fed to an integer column, not a timestamp column at all. Check your SQL... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Open Office, Tony Grant |
|---|---|
| Next by Date: | Re: Open Office, J M Okomba |
| Previous by Thread: | TimeStamp problem..., Vitali Petrov |
| Next by Thread: | Re: TimeStamp problem..., Vitali Petrov |
| 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.
|