-
Notifications
You must be signed in to change notification settings - Fork 822
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
Paranthesis in Escape Sequence does not work anymore #865
Comments
Here's relevant MySQL/J thread: https://bugs.mysql.com/bug.php?id=28317#c146163 The thing is the specification does not allow |
This is still not working: https://www.postgresql.org/message-id/152205989951.4535.13421588945663164374%40wrigleys.postgresql.org |
Without this fix an update of a newer postgres-driver is impossible and so we're stuck on postgres 9.5 because of another error (org.postgresql.util.PSQLException: ERROR: column am.amcanorder does not |
Well the spec does not allow ( after {oj |
It would be nice because it worked for several years. :-) |
I have created the following test: package test; import java.sql.Connection; public class PgsqlOuterJoinTest
public static void main(final String[] args)
} private static Connection createConnection ()
} private static void initialize(final Connection theConnection)
} private static boolean existsTable (final Connection theConnection, final String theTableName)
} private static void createTestTables (final Connection theConnection)
} private static void fillData(
} |
Unless there is evidence of why us allowing this interferes with the spec I would say our historical allowance (and probably conformance to other drivers) trumps strict standard conformance concerns. IOW, I don't see the harm in accepting it - then again I haven't tried to code the fix given other subsequent changes... |
@polobo I don't disagree, although this really belongs in Crystal Reports bug tracker |
@luetzelbinge Thanks! It would be really great if you could create a test that worked in the test suite the driver comes with |
@davecramer I've reworked the test. I used the current snapshot of the postgres driver (42.2.2). Because I don't know where to locate the test in the package hierarchy, I give you the test in the attachment. |
@luetzelbinge , here's how one finds relevant package: https://github.com/pgjdbc/pgjdbc/search?l=Java&q=oj&type=&utf8=%E2%9C%93 |
Hi again, Best regards |
Adding to a milestone sounds good. :-) |
@luetzelbinge , could you file the code as a GitHub PR? |
+1 to PR. This makes it almost trivial to test |
Added test to the repository as a PR. Happy Easter |
Any news about this issue? |
the pr #1156 needs work. Care to take a run at it ? |
Is this test from my pr now ok? |
For instance,
means the driver did sent an invalid SQL to the backend. Apparently that means the PR is not ready yet. |
|
|
@AlBundy33 , the build is KO: https://travis-ci.org/pgjdbc/pgjdbc/builds/385204044 Apparently |
Of course not - fixing this is part of the pgjdbc-developers. :-) Therefore I've created a new pr #1204 with a modified test according to your comments. |
@tkdmatze was absolutely right with his hints. |
@vlsi and @davecramer is there any timeline when the open pull requests will be merged and a new version is released? |
@AlBundy33 not really. more or less as soon as possible; that being said it is mostly dependant on when we find time to review them |
Ok. :-) |
Non-standard `{oj (...)}` is produced by CrystalReports, so enable that deviation from the spec and ignore the parenthesis. Note: this basically reverts "strict" part of #657
we use Crystalreports and their QueryBuilder,
the have outer joins like this
{oj (\"T1\" LEFT OUTER JOIN t2 ON \"T1\".id = t2.id) }
they are not translated anymore
may be connected to
00a8478
because QUOTE_OR_ALPHABETIC_MARKER does not allow Paranthesis to be the first letter
was working in version 9.4.1211
in current version its broken
The text was updated successfully, but these errors were encountered: