logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

debug output: msg#00047

Subject: debug output
Moin,

I have a problem with psycopg. I use a query to select data from the
database but it didnt work. If I paste the query to psql it works. Is
it possible to get the a complete error message from psycopg? Here is
the code:

 query = "select mdt, sb, anr, ttl, nme, vnm, ztz, ktk, str, plz, "
 query += "lnd, tla, tlb, tfx, mbl, eml, url, brf, par "
 query += "from mdt where mdt = %s;" % id
        
  try:
            curs.execute(query)
  except:
            sys.exit(1)

Many thanks
Matthias


<Prev in Thread] Current Thread [Next in Thread>