Skip to content

@EnableQueriesWithoutBindParameters

Jean Bisutti edited this page Nov 18, 2020 · 3 revisions

Cancels behavior of @DisableQueriesWithoutBindParameters.

See the PostgreSQL β€œbind variable peeking” paper from Franck Pachot.

πŸ”§ Elements

Name Type Meaning Default value
comment String To comment on the reason why SQL queries without bind parameters are enabled. -

πŸ”Ž Example

@DisableQueriesWithoutBindParameters(comment = "Skewed data")
@Test
public void execute() {
   ...
}

Annotations

πŸ‘‰ Β Core

πŸ‘‰ Β JVM

πŸ‘‰ Β SQL

πŸ‘‰ Β Scopes

πŸ‘‰ Β Create an annotation

Supported frameworks

πŸ‘‰ Β JUnit 4

πŸ‘‰ Β JUnit 5

πŸ‘‰ Β TestNG

πŸ‘‰ Β Spring

How to

πŸ‘‰ Β Detect and fix N+1 SELECT

Project examples

πŸ‘‰ Β Maven performance

πŸ‘‰ Β Spring Boot - JUnit 4

πŸ‘‰ Β Spring Boot - JUnit 5

πŸ‘‰ Β Micronaut Data - JUnit 5

πŸ‘‰ Β Micronaut - Spring - JUnit 5

πŸ‘‰ Β Quarkus - JUnit 5

Miscellaneous

πŸ‘‰ Β FAQ

πŸ‘‰ Β QuickPerf code

Clone this wiki locally