Skip site navigation (1) Skip section navigation (2)

Error

From: <operationsengineer1(at)yahoo(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Error
Date: 2005-11-30 21:35:46
Message-ID: 20051130213546.45625.qmail@web33314.mail.mud.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-novice
i have the following code...

// start

        $db = &ADONewConnection('postgres');
        $db ->
Connect($db_string,$db_owner,$db_pw,$db_name);
//        $db -> debug=true;

        $customer_name =
$form->GetInputValue('customer_name');
        $customer_id = $db->getone("select
nextval('t_customer_cust_id_seq')");

$sql_insert = <<<_EOSQL

    INSERT INTO t_customer (customer_id,
customer_name, customer_entry_date)
    VALUES (?,?,?)

_EOSQL;

        $result = $db->Execute($sql_insert,
array($customer_id, $customer_name,
$db->DBDate(time())));

//end code

it produces the following error...

ERROR: column "customer_id" is of type integer but
expression is of type boolean HINT: You will need to
rewrite or cast the expression.

any ideas?


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

Responses

  • Re: Error at 2005-12-01 00:33:49 from Charley Tiggs

pgsql-novice by date

Next:From: Marcus EngeneDate: 2005-11-30 23:37:36
Subject: Re: Combinatorial problem
Previous:From: Marcus EngeneDate: 2005-11-30 21:32:52
Subject: Re: Combinatorial problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group