Clodoaldo Pinto Neto wrote:

>>Are there any python drivers that work with the version 8 beta?
>>
>>The version seven ones didn't.
>
>
> This script is working with version 7.4.2, FC2, python 2.3.3
>
> [SNIP]

May you test the following script and let me know which error you are encountering:


#!/usr/bin/python

import pgdb

if ( __name__ == "__main__") :
        connection = pgdb.connect(
                        user = 'user',
                        password = 'password',
                        host = '127.0.0.1',
                        database = 'database')

        if ( connection == None):
                raise "Could Not Connect"

        cursor = connection.cursor()
        cursor.execute ( 'select version()' )
        result = cursor.fetchall()
        cursor.close()

        while ( type(result) is type([]) ):
                result = result[ 0 ]

        print result



this is working correctly on my 8.0beta1 installation

Regards
Gaetano Mendola











---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply via email to