Skip to content
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

It seems not support sql statement contains " <> " #313

Closed
denghc0607 opened this issue Aug 4, 2017 · 3 comments
Closed

It seems not support sql statement contains " <> " #313

denghc0607 opened this issue Aug 4, 2017 · 3 comments

Comments

@denghc0607
Copy link

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Jdbc do you using?

1.5.0

Expected behavior

Support complex sql

Actual behavior

not contains " <> "

Steps to reproduce the behavior

Please provide the reproduce example codes (such as github link) if possible.

@terrymanu
Copy link
Member

please give a example for sql

@denghc0607
Copy link
Author

SELECT
j.ID,
j. STATUS,
j.JOB_USER,
j.TYPE,
j.JOB_LEVEL,
j.JOB_CREATETIME,
j.SHARDTIME,
j.BEFORE_USER,
j.EXE_USER,
r.RELEASEDATE,
r.INNERCODE,
r.TITLE,
r.SECONDTITLE,
r.MEDIASOURCE
FROM
table1 j,
table2 r
WHERE
j.ID = r.JOB_ID
AND j.JOB_USER IN (
50063730,
1,
1645,
2,
3206,
5003227,
50020450,
2066,
50086076
)
AND j.TYPE <> 1
AND j. STATUS IN (1, 5, 6)
ORDER BY
SHARDTIME DESC,
JOB_LEVEL DESC

@terrymanu like this , thank you !!

terrymanu added a commit that referenced this issue Aug 8, 2017
@terrymanu
Copy link
Member

fixed at 1.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants