-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing of whole functions fails #16
Comments
Submitted by ahermans Logged In: YES This test will also requires my patch 1811381 to pass. |
Submitted by ahermans Logged In: YES The bug is somewhere in PgDumpLoader.getWholeFunction(). I'll investigate further. |
Submitted by ahermans Logged In: YES Here is a new testcase which shows this bug in a different way. It does not depend on my whitepsace patch. This testcase tests to functions that are not equal. But apgdiff says they are. This is because the whole function body is not evalueted. Only the beginning. PgDumpLoader.getWholeFunction() does not return the whole function ddl. |
Submitted by fordfrog Logged In: YES I suppose I'll get to this at the weekend unless you succeed to fix it sooner. Thank you for your help. |
Submitted by spdenne_work Logged In: YES I'm getting a variety of problems which are probably related to this bug, and I've figured out that my problems are due to my schema including function definitions with a newline after "AS". For example if these 6 lines are the entire schema file that I compare: CREATE OR REPLACE FUNCTION increment(i integer) RETURNS integer AS The I get: If there is not a newline between the AS and the $$ then it works ok for me. Unfortunately I have a lot of functions defined in this style with the newline after "AS". |
Submitted by ahermans Attached is an updated testcase for this bug. Created against SVN. I tried to change the way end-of-function is matched, but didn't manage to do so without breaking something else. File Added: 2008-10-22_apgdiff_different_function_updated_testcase.diff |
Submitted by fordfrog fixed in next release. obviously took me more than one weekend :-) |
Converted from SourceForge issue 1811401, submitted by ahermans
Attached is a testcase for a function that should be equal. But there seems to be something wrong with the way the functions are parsed because of the newlines. The whole body of the function with newlines is not included.
The text was updated successfully, but these errors were encountered: