Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7E577633A4E for ; Tue, 10 Aug 2010 13:38:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 05276-07 for ; Tue, 10 Aug 2010 16:38:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 48EE4633A77 for ; Tue, 10 Aug 2010 13:38:12 -0300 (ADT) Received: by fxm13 with SMTP id 13so816961fxm.19 for ; Tue, 10 Aug 2010 09:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to :disposition-notification-to:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=Kx4XBmej3CvRMmiXxO7zXQYnsWbcsXKPFdIgBXAFN9c=; b=QzyCedB+rqTBWX9Gy7EBAnqGjgRJwvk3upseLgYHZ96LDpjFY+sqbc3cDGh4YiCQcQ ilH6FpHy9sR7bLDzM7MZMfatvbNH9l1A3/NAoSMcM3JhhTvm14Rz/KWVUePzTNsXxE5Y to0lQd7waPrG8L8fKpJs8WKbdlxaDmkG1umBQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:disposition-notification-to:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=ZzAqpZsuhCc7cNsHIM7fT9eXBkmUvZj4Ndfkd6Ej+OXm//RJRbdXgrM4j3UMemwhfF 4jylXBX4gTrAug7X6ugjKVQM8fm+y5NuklVzU1DFCu+bAlNpaj77p+NrKFHUArQ22we6 ySrePOpQgi4oVloU8AOx6YCe5y8X52OcjoZ90= Received: by 10.223.119.196 with SMTP id a4mr18403779far.65.1281458290303; Tue, 10 Aug 2010 09:38:10 -0700 (PDT) Received: from [192.168.100.100] (178-164-149-107.pool.digikabel.hu [178.164.149.107]) by mx.google.com with ESMTPS id f11sm2421821fak.20.2010.08.10.09.38.08 (version=SSLv3 cipher=RC4-MD5); Tue, 10 Aug 2010 09:38:09 -0700 (PDT) Subject: type cast From: Imre Horvath To: pgsql-sql@postgresql.org Content-Type: text/plain; charset="UTF-8" Date: Tue, 10 Aug 2010 18:38:06 +0200 Message-ID: <1281458286.7072.2.camel@cytherian.blemidon.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-4.fc13) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-5 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/43 X-Sequence-Number: 34483 Hi! I don't know if it's the right place or the psycopg2 list: I've got a plpython function, with a character varying param. I can call it from sql. But when i try to call it with psycopg2.callproc('testfunc', ['test']), i've got the error: function testfunc(unknown) does not exist HINT: No function matches the given name and argument types. You might need to add explicit type casts. Thanks in advance: Imre Horvath