Beispiel #1
0
def p_instruccion_alter8(t):
    '''instruccion : ALTER TABLE ID ADD CONSTRAINT ID CHECK expre PUNTO_COMA
    '''
    t[0] = AlterTable.AlterTable(t[3], None, t[4], t[6], None, None, t.lineno, t.lexpos)
Beispiel #2
0
def p_instruccion_alter9(t):
    '''instruccion : ALTER TABLE ID RENAME COLUMN ID TO ID PUNTO_COMA
    '''
    t[0] = AlterTable.AlterTable(t[3], None, t[4], t[6], None, None, t.lineno, t.lexpos)
Beispiel #3
0
def p_instruccion_alter6(t):
    '''instruccion : ALTER TABLE ID DROP CONSTRAINT ID PUNTO_COMA
    '''
    t[0] = AlterTable.AlterTable(t[3], None, t[4], t[6], None, None, t.lineno, t.lexpos)
Beispiel #4
0
def p_instruccion_alter5(t):
    '''instruccion : ALTER TABLE ID ALTER COLUMN ID SET NOT NULL PUNTO_COMA
    '''
    t[0] = AlterTable.AlterTable(t[3], None, t[4], t[6], None, None, t.lineno, t.lexpos)
Beispiel #5
0
def p_instruccion_alter4(t):
    '''instruccion : ALTER TABLE ID ADD FOREIGN KEY PARIZQ lista_id PARDER REFERENCES ID PARIZQ lista_id PARDER PUNTO_COMA
    '''
    t[0] = AlterTable.AlterTable(t[3], None, t[4], t[11], t[8], t[13], t.lineno, t.lexpos)
Beispiel #6
0
def p_instruccion_alter3(t):
    '''instruccion : ALTER TABLE ID ADD CONSTRAINT ID UNIQUE PARIZQ lista_id PARDER PUNTO_COMA
    '''
    t[0] = AlterTable.AlterTable(t[3], None, t[4], t[6], t[9], None, t.lineno, t.lexpos)
Beispiel #7
0
def p_instruccion_alter1(t):
    '''instruccion : ALTER TABLE ID ADD COLUMN ID tipo PUNTO_COMA
    '''
    t[0] = AlterTable.AlterTable(t[3], None, t[4], t[6], None, None, t.lineno, t.lexpos)