Received: from sushi.toad.net (IDENT:root@sushi-old.toad.net [209.150.117.251]) by hub.org (8.10.1/8.10.1) with ESMTP id e8SM7gp12371 for ; Thu, 28 Sep 2000 18:07:42 -0400 (EDT) Received: from toad.net (core18d17.dynamic-dialup.toad.net [162.33.188.17]) by sushi.toad.net (8.9.3/8.9.3) with ESMTP id SAA11681 for ; Thu, 28 Sep 2000 18:05:25 -0400 Message-ID: <39D3C138.86C1FDDB@toad.net> Date: Thu, 28 Sep 2000 18:07:52 -0400 From: Ken Kachnowich Reply-To: khkachn@NOSPAMtoad.net X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Postgres interfaces Subject: Re: Newlines in String inserts with JDBC References: <39D28E41.B22FFB7C@toad.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200009/114 Sorry, I did not give enough information. I am using the Serialize class. It builds an SQL insert statement in a String and the back end seems to fail if there is a newline in a text fields value. If the PreparedStatement and setString work with newlines then I can look into using that. I need to get a resultSet back, though, so I can figure out what the record OID is of the record I just inserted. Ken Ken Kachnowich wrote: > > Is there a method that could be used to insert Strings containing > newline charaters using the JDBC interface? I could replace them > with some character before the insert but what would be a good > character to use? > > Thanks, > > Ken