Need Help for a query

From: aravind chandu <avin_friends(at)yahoo(dot)com>
To: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Need Help for a query
Date: 2008-10-31 20:18:46
Message-ID: 745755.14851.qm@web31404.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

            I am
using this pqxx library for postgresql to run programs.The following is
the query which i gave to store the data,here data.speed,data.heading
are float values and data.ttime is timestamp .If i try to run this
statement I end up with an error below this query.Please help me to
solve this problem.

 result R1(T1.exec("insert into saveodtdata values( "+data.speed+" ,  "+data.heading+" , '" +data.ttime+" ' )" ));

 invalid operands of types `const char[33]' and `float' to binary `operator+'make: *** [main2.o] Error 1

Thank You,

Avinash.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eric Schwarzenbach 2008-10-31 20:36:02 Re: Wildly erratic query performance
Previous Message Dann Corbit 2008-10-31 20:09:23 Re: Wildly erratic query performance