~m4v/+junk/kmleague

« back to all changes in this revision

Viewing changes to databases.py

  • Committer: Elián Hanisch
  • Date: 2009-09-28 01:49:37 UTC
  • Revision ID: lambdae2@gmail.com-20090928014937-3ir792yuljudpnu9
fixes for ranking table order

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
                        cmd = self._makeUPDATE(values, where=where, equal=equal)
310
310
                        self.commit(cmd)
311
311
 
312
 
        def _makeSELECT(self, table=None, where='', equal='', like='', orderBy='', limit=None, desc=False):
 
312
        def _makeSELECT(self, table=None, where='', equal='', like='', orderBy='',
 
313
                        select='*', limit=None, desc=False):
313
314
                if not table:
314
315
                        table = self.table
315
 
                cmds = [ "SELECT * FROM %r" % sql(table) ]
 
316
                cmds = [ "SELECT %s FROM %r" % (select, sql(table)) ]
316
317
                if where and (equal or like):
317
318
                        if equal:
318
319
                                cmds.append("WHERE %s=%r" % (where, equal))