Skip to content

Conversation

@xiemaisi
Copy link

A quick search didn't turn up any open-source projects that use it, so the model hasn't been tested on real-world code, only the unit tests.

@xiemaisi xiemaisi added the JS label Oct 10, 2018
@xiemaisi xiemaisi requested a review from a team as a code owner October 10, 2018 14:12
Copy link
Contributor

@asger-semmle asger-semmle left a comment

Choose a reason for hiding this comment

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

Don't know anything about spanner, but LGTM modulo one typo.

}

/**
* A call to `Trnsaction.run` or `Database.runStream`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Trnsaction -> Transaction

* Gets the position of the query argument; default is zero, which can be overridden
* by subclasses.
*/
int getQueryArgumentPosition() {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not actually overridden anywhere and the surrounding module is private. It looks like you opted for overriding getAQueryArgument instead.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, this is a tiny bit of speculative generality.

@xiemaisi
Copy link
Author

Typo amended.

@xiemaisi xiemaisi assigned ghost Oct 15, 2018
ghost
ghost previously approved these changes Oct 15, 2018
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM.
There are two docstrings that optionally could use a minor improvement.

}

/**
* A call to `Transaction.run` or `Database.runStream`.
Copy link

Choose a reason for hiding this comment

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

Make this docstring more abstract? It looks exhaustive, but the predicate also supports runUpdate...

@semmle-qlci semmle-qlci merged commit 1e76966 into github:master Oct 16, 2018
@xiemaisi xiemaisi deleted the js/google-spanner branch October 17, 2018 08:56
@kamarcum kamarcum unassigned ghost Apr 28, 2020
aibaars pushed a commit that referenced this pull request Oct 14, 2021
Remove unused columns from tokeninfo tables
smowton pushed a commit to smowton/codeql that referenced this pull request Apr 16, 2022
Do not extract local function containers as anonymous classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants