This repository was archived by the owner on Jan 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
ql/test/library-tests/semmle/go/frameworks/SQL Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,10 +43,17 @@ func test(db *sql.DB, ctx context.Context) {
4343}
4444
4545func squirrelTest (querypart string ) {
46+ squirrel .Select ("*" ).From ("users" ).Prefix (querypart ) // $ querystring=querypart
47+ squirrel .Select ("*" ).From ("users" ).Column (querypart ) // $ querystring=querypart
48+ squirrel .Select ("*" ).From ("users" ).From (querypart ) // $ querystring=querypart
49+ squirrel .Select ("*" ).From ("users" ).JoinClause (querypart ) // $ querystring=querypart
50+ squirrel .Select ("*" ).From ("users" ).Join (querypart ) // $ querystring=querypart
51+ squirrel .Select ("*" ).From ("users" ).LeftJoin (querypart ) // $ querystring=querypart
52+ squirrel .Select ("*" ).From ("users" ).RightJoin (querypart ) // $ querystring=querypart
53+ squirrel .Select ("*" ).From ("users" ).InnerJoin (querypart ) // $ querystring=querypart
4654 squirrel .Select ("*" ).From ("users" ).Where (squirrel .Expr (querypart )) // $ querystring=querypart
4755 squirrel .Select ("*" ).From ("users" ).Where (querypart ) // $ querystring=querypart
4856 squirrel .Select ("*" ).From ("users" ).Having (querypart ) // $ querystring=querypart
49- squirrel .Select ("*" ).From ("users" ).JoinClause (querypart ) // $ querystring=querypart
5057 squirrel .Select ("*" ).From ("users" ).OrderByClause (querypart ) // $ querystring=querypart
5158 squirrel .Select ("*" ).From ("users" ).Suffix (querypart ) // $ querystring=querypart
5259}
You can’t perform that action at this time.
0 commit comments