#NEWLINE# def _GenerateRangeCenter( self , start_key , end_key , cols ) : #NEWLINE# #INDENT# 'Generate an inequality expression for all the values between two trees.\n\n    Args:\n      start_key: (dict) The PRIMARY KEY values for the start of the range.\n      end_key: (dict) The PRIMARY KEY values for the end of the range.\n      cols: The columns that vary between start_key and end_key.\n\n    Returns:\n      String containing a SQL expression for the center rows.\n    ' #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# return '1' #NEWLINE# #UNINDENT# col = cols [ 0 ] #NEWLINE# return ( '(`%s` > %s AND `%s` < %s)' % ( col , self . _dbh . Escape ( start_key [ col ] ) , col , self . _dbh . Escape ( end_key [ col ] ) ) )