File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/experimental/semmle/python/frameworks
test/experimental/library-tests/frameworks/sqlalchemy Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ private module SqlAlchemy {
111
111
this .( DataFlow:: MethodCallNode ) .calls ( Engine:: instance ( ) , [ "begin" , "connect" ] )
112
112
or
113
113
this .( DataFlow:: MethodCallNode ) .calls ( instance ( ) , "connect" )
114
+ or
115
+ this .( DataFlow:: MethodCallNode ) .calls ( instance ( ) , "execution_options" )
114
116
}
115
117
}
116
118
Original file line number Diff line number Diff line change 98
98
99
99
# connection with custom execution options
100
100
conn_with_custom_exe_opts = conn .execution_options (bar = 1337 )
101
- result = conn_with_custom_exe_opts .execute (text_sql ) # $ MISSING: getSql=text_sql
101
+ result = conn_with_custom_exe_opts .execute (text_sql ) # $ getSql=text_sql
102
102
assert result .fetchall () == [("FOO" ,)]
103
103
104
104
# Session -- is what you use to work with the ORM layer
@@ -300,7 +300,7 @@ class For14(Base):
300
300
301
301
# connection with custom execution options
302
302
conn_with_custom_exe_opts = conn .execution_options (bar = 1337 )
303
- result = conn_with_custom_exe_opts .execute (text_sql ) # $ MISSING: getSql=text_sql
303
+ result = conn_with_custom_exe_opts .execute (text_sql ) # $ getSql=text_sql
304
304
assert result .fetchall () == [("FOO" ,)]
305
305
306
306
# `scalar` is shorthand helper
You can’t perform that action at this time.
0 commit comments