Skip to content

Fixed issue with ORDER BY several columns and IN / NOT IN operations with String / Number objects - #1268

Closed
akhaneev wants to merge 0 commit into
AlaSQL:developfrom
stiltsoft:develop
Closed

akhaneev wants to merge 0 commit into
AlaSQL:developfrom
stiltsoft:develop

Conversation

@akhaneev

Copy link
Copy Markdown
Contributor

Two fixes for String / Number objects:

  1. ORDER BY two or more columns

  2. IN / NOT IN operators

tests811 has two new tests #5 and #6. Other changes is something with formatting.
test813 is ignored - tests for issues #1263 and #1264

@mathiasrw mathiasrw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you so much for taking the time to look into this. I dont quite sure getting the valueOf is the best way on changing how IN and ORDER BY works. Can you please reflect on why you have done it this way?

Comment thread src/15utility.js Resolved
@mathiasrw

Copy link
Copy Markdown
Member

Please run yarn format to fix tests.

@akhaneev

Copy link
Copy Markdown
Contributor Author

yarn format fails to run, it says { is not a command:
$ yarn pretty-since-dev --write
$ { git diff --name-only --diff-filter=d origin/develop ; git diff --name-only --diff-filter=d --staged origin/develop ; } | sort | uniq | grep -vE '^dist/|^test/coverage|^lib/|.min.js$' | grep -E '\.(scss|css|js|ts|vue|json)$' | xargs npx prettier
--write
"{" is not a command
error Command failed with exit code 255.

@mathiasrw

Copy link
Copy Markdown
Member

Ahh - You must be on windows. ill PR your branch.

@akhaneev

Copy link
Copy Markdown
Contributor Author

Yes, on Windows. Thanks!

@mathiasrw

Copy link
Copy Markdown
Member

Please try to run npx prettier --write 'src/*.js' 'test/*.js' and repush.

@akhaneev

Copy link
Copy Markdown
Contributor Author

Thank you! Done.

@akhaneev

Copy link
Copy Markdown
Contributor Author

test621 runs fine in my environment...

@mathiasrw

Copy link
Copy Markdown
Member

Yep. Its just a timeout. Running them again...

@mathiasrw

Copy link
Copy Markdown
Member

It looks like you are overwriting test/test813.js with your last addition

@akhaneev

Copy link
Copy Markdown
Contributor Author

Hi Mathias,
test/test813.js was not modified. I fixed it earlier when merged with the upstream.

Comment thread src/55functions.js Resolved
@mathiasrw

Copy link
Copy Markdown
Member

Lets sort this out and get it merged.

@mathiasrw

mathiasrw commented Sep 30, 2022 •

Copy link
Copy Markdown
Member

Cleaned up a bit - but not able to get that test nailed. hmmm.

@mathiasrw

mathiasrw commented Oct 1, 2022 •

Copy link
Copy Markdown
Member

Argh. I fucked up. Working on it... But I got no idea why this PR was closed...

@mathiasrw

Copy link
Copy Markdown
Member

Released as part of v2.1.0

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.

2 participants