logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Problems: msg#00026

Subject: Re: Problems
Il giorno gio, 12/05/2005 alle 00.53 +0200, charlie clark ha scritto:
> Dear list,
> 
> currently having all kinds of problems converting some text files to 
> databases. This is from psycopg2 (1.99.13) with Python 2.3 on Windows 2000 
> talking to PostgreSQL 8.0 on Windows.
> 
> pq_execute: executing SYNC query:
>      SELECT id FROM localekit_attributes WHERE attribute = 'We hope that 
> nobody h
> as been forgotten here. Regards,
> CEO/CVO Bernd Korz
> CTO Alan Westbrook.'
> pq_execute: entering syncronous DBAPI compatibility mode
> pq_fetch: pgstatus = PGRES_FATAL_ERROR
> pq_fetch: uh-oh, something FAILED
> pq_fetch: fetching done; check for critical errors
> psyco_curs_execute: res = -1, pgres = 00000000
> Traceback (most recent call last):
>    File "locale_insert.py", line 131, in ?
>      do_insert(lc)
>    File "locale_insert.py", line 71, in do_insert
>      c.execute(attribute, (attr, ))
> psycopg.ProgrammingError: current transaction is aborted, commands ignored 
> until
>   end of transaction block

PostgreSQL is telling you that a previous query failed and executing
more queries in the current transaction will just raise more errors. You
need to rollback() on the connection object before going on.
 
-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                
fog-8fiUuRrzOP0dnm+yROfE0A@xxxxxxxxxxxxxxxx
INIT.D Developer                                           
fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx
              La felicità è una tazza di cioccolata calda. Sempre. -- Io

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/+sw@xxxxxxxxxxxxxxxx
http://lists.initd.org/mailman/listinfo/psycopg
Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe