Esempio n. 1
0
def p_instruccion_select7(t):
    '''
    query   : SELECT dist lcol FROM lcol lrows
    '''
    #            dist  tipo  lcol  lcol  linners where lrows
    t[0] = Select.Select(t[2], None, t[3], t[5], None, None, None,
                         t.lexer.lineno, t.lexer.lexpos)
Esempio n. 2
0
def p_instruccion_select(t):
    '''
    query : SELECT dist lcol FROM lcol
    '''
    val = []
    val.append(
        Select.Select(t[2], t[3], t[5], None, None, None, t.lexer.lineno,
                      t.lexer.lexpos))
    t[0] = SelectLista.SelectLista(val, t.lexer.lineno, t.lexer.lexpos)
Esempio n. 3
0
def p_instruccion_select7(t):
    '''
    query   : SELECT dist lcol FROM lcol lrows
    '''
    #            dist  tipo  lcol  lcol  linners where lrows
    val = []
    val.append(
        Select.Select(t[2], t[3], t[5], None, None, t[6], t.lexer.lineno,
                      t.lexer.lexpos))
    t[0] = SelectLista.SelectLista(val, t.lexer.lineno, t.lexer.lexpos)
Esempio n. 4
0
def p_instruccion_select(t):
    '''
    query : SELECT dist lcol FROM lcol 
    '''
    t[0] = Select.Select(t[2], None, t[3], t[5], None, None, None, t.lineno, t.lexpos)