Hello django-users,

I have been encountering a strange behaviour when trying to run SQL 
directly with a cursor. I am using Django 1.11 with porstgres 9.5.The query 
normally returns 7 rows with 2 columns.

Symptoms:
- When reading the queryset of a query I get wrong results -> I still have 
7 rows with two columns but values of the second column are weirdly similar 
in pair where they should be all different
ex: I get 500-500-800-800 where nomal results should be 500 400 800 700
- If I run the query directly (extracted from the cursor object in debug) 
with pgadmin I get the expected results
- The first columns behaves as expected

I use cursor.execute() and cursor.fetchall() to run the query and read the 
results.

I don't know if it's a bug or if I do something wrong, that's why I ask it 
there before posting a ticket.

If anyone has encountered the bug or has an idea I am interested.

Cheers,

Pierre-Louis K.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eaa476ae-604e-405c-a1e2-681d8c139fad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to