@@ -45,8 +45,8 @@ private predicate pqxxEscapeArgument(string function, int arg) {
4545 function in [ "esc" , "esc_raw" , "quote" , "quote_raw" , "quote_name" , "quote_table" , "esc_like" ]
4646}
4747
48- private class PostgreSqlSink extends SqlSink {
49- PostgreSqlSink ( ) {
48+ private class PostgreSqlExecutionFunction extends SqlExecutionFunction {
49+ PostgreSqlExecutionFunction ( ) {
5050 exists ( Class c |
5151 this .getDeclaringType ( ) = c and
5252 // transaction exec and connection prepare variations
@@ -60,7 +60,7 @@ private class PostgreSqlSink extends SqlSink {
6060 )
6161 }
6262
63- override predicate getAnSqlParameter ( FunctionInput input ) {
63+ override predicate hasSqlArgument ( FunctionInput input ) {
6464 exists ( int argIndex |
6565 pqxxTransactionSqlArgument ( this .getName ( ) , argIndex )
6666 or
@@ -71,8 +71,8 @@ private class PostgreSqlSink extends SqlSink {
7171 }
7272}
7373
74- private class PostgreSqlBarrier extends SqlBarrier {
75- PostgreSqlBarrier ( ) {
74+ private class PostgreSqlEscapeFunction extends SqlEscapeFunction {
75+ PostgreSqlEscapeFunction ( ) {
7676 exists ( Class c |
7777 this .getDeclaringType ( ) = c and
7878 // transaction and connection escape functions
@@ -84,7 +84,7 @@ private class PostgreSqlBarrier extends SqlBarrier {
8484 )
8585 }
8686
87- override predicate getAnEscapedParameter ( FunctionInput input , FunctionOutput output ) {
87+ override predicate escapesSqlArgument ( FunctionInput input , FunctionOutput output ) {
8888 exists ( int argIndex |
8989 input .isParameterDeref ( argIndex ) and
9090 output .isReturnValueDeref ( )
0 commit comments