#NEWLINE# def getquoted( self ) : #NEWLINE# #INDENT# 'Return the appropriate SQL for the given object, typecast\n        to the registered db_type.\n        ' #NEWLINE# adapted = adapt ( tuple ( adapted . _obj ) ) #NEWLINE# adapted . prepare ( connection . connection ) #NEWLINE# return '{sql}::{db_type}' . format ( db_type = self . _db_type , sql = adapted . getquoted ( ) . decode ( 'utf8' ) ) . encode ( 'utf8' )