-
Notifications
You must be signed in to change notification settings - Fork 30
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
'1 week'::interval
gets unnecessary whitespace
#65
Comments
I'm somewhat confused here, when I tried adding a test in the repo: #[test]
fn it_formats_double_colons_in_where() {
let input = "select * from users where created_at > now() - '1 week'::interval";
let options = FormatOptions {
uppercase: Some(false),
..FormatOptions::default()
};
let expected = indoc!(
"
select
*
from
users
where
created_at > now() - '1 week'::interval"
);
assert_eq!(format(input, &QueryParams::None, &options), expected);
} It passes fine, however when using |
Ah yes, looks like it was already fixed in #63. So just need to wait on a release :) |
New version published with this fix |
This results in:
but I expected that I would get:
The text was updated successfully, but these errors were encountered: