X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7A1F1475C3D for ; Wed, 16 Apr 2003 13:23:45 -0400 (EDT) Received: from m3-cluster1.vcn.com (m3-cluster1.vcn.com [209.193.72.33]) by postgresql.org (Postfix) with ESMTP id 591BA475A45 for ; Wed, 16 Apr 2003 13:23:44 -0400 (EDT) Received: from sweetbeet2k (unverified [209.193.70.230]) by m3-cluster1.vcn.com (Vircom SMTPRS 5.3.232) with ESMTP id ; Wed, 16 Apr 2003 11:23:44 -0600 Message-ID: <00d201c3043d$0123deb0$a1d2a8c0@impsu.net> From: "Hollysugar Webmaster" To: "Hiroshi Inoue" , Subject: syncing mobile application with a view instead of a table Date: Wed, 16 Apr 2003 11:24:15 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00CF_01C3040A.B63AD980" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_30,HTML_20_30 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/53 X-Sequence-Number: 2855 This is a multi-part message in MIME format. ------=_NextPart_000_00CF_01C3040A.B63AD980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MessageNow that we are able to successfully sync our mobile application to = a table we want to sync to a view and use rules to make the actual changes = to the underlying tables. The problem we are having is that without the oid= and ctid column selected as part of the definition of the view the psqlodb= c driver halts with the error that relation oid cannot be found. If we incl= ude the oid and ctid column in the definition of the view then the mobile a= pplication balks because it does not allow you to explicitly create an oid = column. If we uncheck updateable cursors the psqlodbc driver balks because = it only supports sqlsetpos(refresh) without updateable cursors. Any suggestions?=20 If all else fails I figured I could create new tables with copies of the da= ta from the tables I wanted to access with the views and then use triggers = to keep the new tables and the actual storage tables synced. The problem wi= th this solution is that I would then need to rewrite my whole web applicat= ion and we are pressed for time. Thanks. Julie ------=_NextPart_000_00CF_01C3040A.B63AD980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Now that we are able to successfully sync = our=20 mobile application to a table we want to sync to a view and use rules to ma= ke=20 the actual changes to the underlying tables. The problem we are having is t= hat=20 without the oid and ctid column selected as part of the definition of the v= iew=20 the psqlodbc driver halts with the error that relation oid cannot be found.= If=20 we include the oid and ctid column in the definition of the view then the m= obile=20 application balks because it does not allow you to explicitly create a= n oid=20 column. If we uncheck updateable cursors the psqlodbc driver balks because = it=20 only supports sqlsetpos(refresh) without updateable cursors.
 
Any suggestions?
 
If all else fails I figured I could create= new=20 tables with copies of the data from the tables I wanted to access with the = views=20 and then use triggers to keep the new tables and the actual storage tables= =20 synced. The problem with this solution is that I would then need to rewrite= my=20 whole web application and we are pressed for time.
 
Thanks.
 
Julie
------=_NextPart_000_00CF_01C3040A.B63AD980--