On Mar 7, 2:36 am, Alexis Selves <[email protected]> wrote: > Hello, > When I try to use raw SQL commands to simple selects from db I get > this: > InternalError: current transaction is aborted, commands ignored until > end of transaction block
If you make an error in an SQL statement, Postgres will refuse to do anything else until you close out the transaction. See here: http://docs.djangoproject.com/en/1.1/topics/db/transactions/#handling-exceptions-within-postgresql-transactions Note that, if you are using TransactionMiddleware, the default behavior is to tie each single transaction to a HTTP request. Thus, erring anywhere in a transaction during an HTTP request means that Postgres will (stubbornly) refuse to do anything else until the end of that HTTP request. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

