mirror of
https://github.com/apache/impala.git
synced 2025-12-21 10:58:31 -05:00
The only thing this commit does is upgrade sqlparse. The upgrade was done by downloading and extracting the tarball, nothing else (such as patching). The older version of sqlparse would parse SELECT ' ; ' ; into two statements. Neither statement is complete due to the open quote and this would cause an infinite loop. The bug is already fixed in the newest version of sqlparse. Change-Id: I7ce7c269769ae0cde3dc8ca386d0b0e11bea71c1 Reviewed-on: http://gerrit.cloudera.org:8080/102 Reviewed-by: Casey Ching <casey@cloudera.com> Tested-by: Internal Jenkins
13 lines
187 B
SQL
13 lines
187 B
SQL
CREATE OR REPLACE FUNCTION foo(
|
|
p_in1 VARCHAR
|
|
, p_in2 INTEGER
|
|
) RETURNS INTEGER AS
|
|
|
|
DECLARE
|
|
v_foo INTEGER;
|
|
BEGIN
|
|
SELECT *
|
|
FROM foo
|
|
INTO v_foo;
|
|
RETURN v_foo.id;
|
|
END; |