Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fixed unit_of_time #42

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

Closed
sockstack wants to merge 4 commits into JavaScriptor:master from sockstack:fix-unit-of-time
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update main.test.js
  • Loading branch information
sockstack authored Jul 31, 2021
commit e1e5ed4df761321adcce3dd7174c6baf684a733e
7 changes: 3 additions & 4 deletions test/main.test.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -410,21 +410,20 @@ describe('select grammar support', function () {

it('bugfix table alias2', function () {
testParser('select a.* from a t1 join b t2 on t1.a = t2.a')
})
});

it('bugfix unit_of_time1', function() {
testParser(`
SELECT a, b, DATE_SUB(NOW(),INTERVAL 1 YEAR) as time from t1
`)
})
});

it('bugfix unit_of_time1', function() {
testParser(`
SELECT a, b from t1 where created_at >= DATE_SUB(NOW(),INTERVAL 1 MONTH)
`)
})

});

it('place holder support', function() {
testParser(
"select sum(quota_value) value, busi_col2 as sh, ${a} as a, YEAR(now()) from der_quota_summary where table_ename = 'gshmyyszje_derivedidx' and cd = (select id from t1 where a = ${t1})"
Expand Down

AltStyle によって変換されたページ (->オリジナル) /