pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lms <piechcio@inetcafe.eu.org>
To: pgsql-sql@postgresql.org
Subject: convert with libpq
Date: Thu, 16 Nov 2006 20:53:34 +0100
Message-ID: <20061116194623.M54721@isb.com.pl> (raw)

Hi

I must convert some records from database. 
I have table named "langset" in unicode database. When I try use command 

select convert((SELECT "1" from langset where id_langset=5) using 
utf_8_to_iso_8859_2)

in PGadmin, all is ok, sql return 1 record. But where i execute the same 
command in libpq I got 0 rows:
 
res=PQexec(conn_lokalne,"select convert((SELECT \"1\" from langset where 
id_langset=5) using utf_8_to_iso_8859_2)");

printf("%s",PQgetvalue(res,0,0));

What is the problem?




Message-ID: <20061116194623.M54721@isb.com.pl>
Permalink:  ../20061116194623.M54721@isb.com.pl/
Also on:    postgresql.org/message-id/20061116194623.M54721@isb.com.pl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: piechcio@inetcafe.eu.org
  Subject: Re: convert with libpq
  In-Reply-To: <20061116194623.M54721@isb.com.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox