#NEWLINE# def insert_reference( self , repo_id , ref_name , ref_type ) : #NEWLINE# #INDENT# cursor = self . cnx . cursor ( ) #NEWLINE# query = ( ( 'INSERT IGNORE INTO ' + self . db_name ) + '.reference VALUES (%s, %s, %s, %s)' ) #NEWLINE# arguments = [ None , repo_id , ref_type , ref_type ] #NEWLINE# cursor . execute ( query , arguments ) #NEWLINE# self . cnx . commit ( ) #NEWLINE# cursor . close ( ) #NEWLINE# return