X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 08894D7CCD for ; Fri, 9 Sep 2005 03:04:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60925-07 for ; Fri, 9 Sep 2005 06:04:27 +0000 (GMT) Received: from xmail03.myhosting.com (xmail03.myhosting.com [168.144.250.217]) by svr1.postgresql.org (Postfix) with ESMTP id 01283D6E65 for ; Fri, 9 Sep 2005 03:04:27 -0300 (ADT) Received: (qmail 29989 invoked from network); 9 Sep 2005 06:04:20 -0000 Received: from dsl.dynamic8597151188.ttnet.net.tr (HELO [192.168.1.4]) (Authenticated-user:_aydin.toprak@intengo.com@[85.97.151.188]) (envelope-sender ) by xmail03.myhosting.com (qmail-ldap-1.03) with SMTP for ; 9 Sep 2005 06:04:19 -0000 Message-ID: <432125CF.606@intengo.com> Date: Fri, 09 Sep 2005 09:03:59 +0300 From: =?UTF-8?B?QXlkxLFuIFRvcHJhaw==?= User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: simple insert operation References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/27 X-Sequence-Number: 13812 I have faced & solved all the problems that you have mantioned .. try-catch statements and this "lowercase" situation. the lowercase situation was the most annoying one... Thanks for your help... Kevin Grittner wrote: >Hi Ayd*n, > >Others have addressed your compile errors, but I see something which might cause you problems at run time. > >Identifiers which are not "quoted" will be treated as lower case in PostgreSQL, so your query will try to access "passtable"."idcol" instead of "passTable"."idCol". If you created the table without using quotes it will be in lower case and you will be OK referencing it without quotes no matter what capitalization you use; however, if the table really exists in your database with the camel case identifiers, you must use quotes. > >-Kevin > > > > >>>>Ayd*n Toprak 09/08/05 2:58 AM >>> >>>> >>>> > > String sqlQuery = "INSERT INTO passTable (idCol , pass) VALUES >(3, 5)"; > > > > >