pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedtable_to_xml command isn't working
2+ messages / 2 participants
[nested] [flat]
* table_to_xml command isn't working
@ 2007-11-27 15:51 Luigi Pirillo <luigi.pirillo@sky-team.it>
0 siblings, 1 reply; 2+ messages in thread
From: Luigi Pirillo @ 2007-11-27 15:51 UTC (permalink / raw)
To: pgsql-odbc
Hello,
I have registered an odbc entry (named xfpdb) on my Windows XP Pro machine
using PosgreSQL Ansi vers. 8.02.05 (my db server is 8.3 beta 1).
Using a simple VB 6.0 code, I have tried to connect to it and return some
XML information using ADO as in the following:
..
cn.Open "Provider=MSDASQL.1;Persist Security Info=False;Data
Source=xfpdb"
rs.Open "select * from table_to_xml('""Versions""', true, true, '')", cn
MsgBox rs.Fields(0).Value
..
The returned XML string appears truncated, as shown below:
----------------------------------------------------------------------------
---------------------------
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>962</Version_Id>
<Version>0.0.0.0</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:28.20</CreatedDateTime>
</Versions>
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>963</Version_Id>
<Version>0.0.0.1</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
</Versions>
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>964</Version_Id>
<Version>0.0.0.2</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
</Versions>
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>965</Version_Id>
<Version>0.0.0.3</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:38.50</C @
----------------------------------------------------------------------------
---------------------------
Same result using Labview 8.2.1 and its database connectivity tool.
But if I try to execute the query directly using pg Admin III, the XML
output is correct, as shown below:
----------------------------------------------------------------------------
---------------------------
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>962</Version_Id>
<Version>0.0.0.0</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:28.20</CreatedDateTime>
</Versions>
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>963</Version_Id>
<Version>0.0.0.1</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
</Versions>
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>964</Version_Id>
<Version>0.0.0.2</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
</Versions>
<Versions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
<Version_Id>965</Version_Id>
<Version>0.0.0.3</Version>
<Process_Id>600</Process_Id>
<CreatedDateTime>2007-11-13T11:19:38.50</CreatedDateTime>
</Versions>
----------------------------------------------------------------------------
---------------------------
Can anyone help me?
Thanks in advance,
Luigi
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: table_to_xml command isn't working
@ 2007-11-28 03:28 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Luigi Pirillo <luigi.pirillo@sky-team.it>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2007-11-28 03:28 UTC (permalink / raw)
To: Luigi Pirillo <luigi.pirillo@sky-team.it>; +Cc: pgsql-odbc
Luigi Pirillo wrote:
> Hello,
>
>
>
> I have registered an odbc entry (named xfpdb) on my Windows XP Pro
> machine using PosgreSQL Ansi vers. 8.02.05 (my db server is 8.3 beta 1).
>
> Using a simple VB 6.0 code, I have tried to connect to it and return
> some XML information using ADO as in the following:
Could you send me directly the Mylog output ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-11-28 03:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27 15:51 table_to_xml command isn't working Luigi Pirillo <luigi.pirillo@sky-team.it>
2007-11-28 03:28 ` Hiroshi Inoue <inoue@tpf.co.jp>
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