comparison roundup/backends/back_mysql.py @ 4466:f1fe6fd0aa61

Multilinks can be filtered by combining elements with AND, OR and NOT now. A javascript gui was added for "keywords", see issue2550648. Developed by Sascha Teichmann; funded by Intevation. (Bernhard Reiter)
author Bernhard Reiter <Bernhard.Reiter@intevation.de>
date Mon, 08 Nov 2010 16:21:02 +0000
parents 783053bd466c
children 05c857e5dbed
comparison
equal deleted inserted replaced
4465:605f31a596b8 4466:f1fe6fd0aa61
562 except MySQLdb.ProgrammingError, message: 562 except MySQLdb.ProgrammingError, message:
563 if str(message) != 'closing a closed connection': 563 if str(message) != 'closing a closed connection':
564 raise 564 raise
565 565
566 class MysqlClass: 566 class MysqlClass:
567
568 def supports_subselects(self):
569 # TODO: AFAIK its version dependent for MySQL
570 return False
571
567 def _subselect(self, classname, multilink_table): 572 def _subselect(self, classname, multilink_table):
568 ''' "I can't believe it's not a toy RDBMS" 573 ''' "I can't believe it's not a toy RDBMS"
569 see, even toy RDBMSes like gadfly and sqlite can do sub-selects... 574 see, even toy RDBMSes like gadfly and sqlite can do sub-selects...
570 ''' 575 '''
571 self.db.sql('select nodeid from %s'%multilink_table) 576 self.db.sql('select nodeid from %s'%multilink_table)

Roundup Issue Tracker: http://roundup-tracker.org/