logo       

Re: #100: null pointer: msg#00013

python.db.psycopg.devel

Subject: Re: #100: null pointer

On Thu, Mar 09, 2006 at 03:04:11PM -0000, psycopg wrote:
> #100: null pointer
> -----------------------------------------+----------------------------------
> Reporter: brian AT equal / ed DOT net | Owner: fog
> Type: defect | Status: closed
> Priority: high | Milestone: PSYCOPG 2.0
> Component: psycopg2 | Version: 2.0beta
> Severity: critical | Resolution: invalid
> Keywords: |
> -----------------------------------------+----------------------------------
> Comment (by brian AT equal / ed DOT net):
>
> I can't figure out how to use the copy_to function to copy to STDOUT with
> CSV :(

CSV is not supported directly but you can simulate it as follows:

curs.copy_to(sys.stdout, ',')

Hope this helps,
federico


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise