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

Add split and regexp_like functions for different dialects #77

Merged

Conversation

x8lucas8x
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Oct 25, 2017

Coverage Status

Coverage increased (+0.03%) to 98.533% when pulling 2a77039 on x8lucas8x:add-split-and-regex-like-functions into 4593eac on kayak:master.

self.assertEqual("SELECT SPLIT_PART(\"foo\",\'|\',3) FROM \"abc\"", str(q))

def test__split_part__field_with_mysql_dialect(self):
q = QueryBuilder(dialect=Dialects.MYSQL).from_(self.t).select(fn.SplitPart(self.t.foo, '|', 3))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI you can use MySQLQuery, PostgreSQL etc classes here instead of QueryBuilder

@x8lucas8x x8lucas8x force-pushed the add-split-and-regex-like-functions branch from 2a77039 to 2b121e2 Compare October 26, 2017 08:18
@x8lucas8x
Copy link
Contributor Author

@mikeengland Done. Tests are now using the specific QueryBuilders for each dialect.

@coveralls
Copy link

coveralls commented Oct 26, 2017

Coverage Status

Coverage increased (+0.03%) to 98.532% when pulling 2b121e2 on x8lucas8x:add-split-and-regex-like-functions into 4593eac on kayak:master.

@x8lucas8x x8lucas8x merged commit 916c9a2 into kayak:master Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants