X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4524F4768FB for ; Fri, 7 Feb 2003 04:11:39 -0500 (EST) Received: from ns.aprote.ee (ns.aprote.ee [80.235.78.106]) by postgresql.org (Postfix) with ESMTP id 7F989475A4B for ; Fri, 7 Feb 2003 03:46:26 -0500 (EST) Received: Message by Barricade ns.aprote.ee with ESMTP id h178mrf03387 for ; Fri, 7 Feb 2003 10:48:53 +0200 Received: from TAMBETM ([192.168.1.14]) by black.aprote.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 7 Feb 2003 10:46:26 +0200 Message-ID: <005d01c2ce85$66741110$0e01a8c0@aprote.com> From: "Tambet Matiisen" To: "Makauskas Vidas" , References: Subject: Re: Cannot insert into view without an appropriate rule (#7) Date: Fri, 7 Feb 2003 10:46:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-4" Content-Transfer-Encoding: 7bit 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-OriginalArrivalTime: 07 Feb 2003 08:46:26.0501 (UTC) FILETIME=[66798F50:01C2CE85] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/40 X-Sequence-Number: 2658 ----- Original Message ----- From: "Makauskas Vidas" To: Sent: Monday, February 03, 2003 6:20 PM Subject: [ODBC] Cannot insert into view without an appropriate rule (#7) > Hi, > It's convenient (search, filters, sorting...) to do local forms over ODBC > with linked tables in access. But exits incompatibility with date types: > int8, date, time in postgres with access. I've make an attemp link tables > via views with data conversation and do INSERT into table through CREATE > VIEW view_table AS SELECT Fdate::timestamp, Fint8::int4 FROM table; and get > error 'Cannot insert into view without an appropriate rule (#7)'. > May I ask such question without myself additional atemptions, because it's > my first step into postgres, is it mistaken way to solve problem mentioned > above. Or it's posible to solve problem via rules... > Just create insert rule for the view. http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=rules.html Or you could also change column types of source table and insert directly to table. If Access sees the column as int4, you can't insert int8 into it anyway. Tambet