LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-30-2012, 05:41 AM   #1
tadeas
Member
 
Registered: Jul 2008
Location: Prague
Distribution: Opensuse
Posts: 40

Rep: Reputation: 5
Python Twisted adbapi number of affected rows


I write a Twisted application that does a lot of SQL - I use MySQL to be specific. Since I write 'raw' SQL (no ORM), it's great to use adbapi.

I need to get information about how many rows were affected by UPDATE. However runOperaion returns None and runQuery returns () (i.e. empty tuple).

How do I get this in adbapi?

Thanks in advance!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The maximum number of characters and rows in a database? puppymagic Linux - Newbie 1 04-18-2010 10:14 PM
Python Twisted Warning kushalkoolwal Debian 1 07-10-2009 07:11 PM
adding constant (number) to a number in all rows skuz_ball Programming 2 05-20-2008 09:57 PM
data with same number of rows and coloumns C/C++ fs11 Programming 2 04-29-2008 10:17 PM
problem in bittorrent and twisted.python slazer Linux - Software 0 08-14-2006 09:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration