fix
This commit is contained in:
parent
3918ae6bef
commit
1801913315
1 changed files with 1 additions and 4 deletions
|
|
@ -21,7 +21,6 @@ import org.jooq.impl.DefaultDataType;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
import service.button.sql.ExecuteSqlButtonService;
|
import service.button.sql.ExecuteSqlButtonService;
|
||||||
import utils.SqlQueryUtils;
|
import utils.SqlQueryUtils;
|
||||||
|
|
||||||
|
|
@ -53,7 +52,6 @@ public class ReadOnlySqlButtonServiceImpl implements ExecuteSqlButtonService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
|
||||||
public List<?> executeSql(Object[] params) {
|
public List<?> executeSql(Object[] params) {
|
||||||
initDsl();
|
initDsl();
|
||||||
SQLParameters parameters = new SQLParameters();
|
SQLParameters parameters = new SQLParameters();
|
||||||
|
|
@ -87,8 +85,7 @@ public class ReadOnlySqlButtonServiceImpl implements ExecuteSqlButtonService {
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
private List<?> executeUnknownQuery(SQLParameters parameters) {
|
||||||
public List<?> executeUnknownQuery(SQLParameters parameters) {
|
|
||||||
// jooq does not provide any way to get generated keys for sql queries
|
// jooq does not provide any way to get generated keys for sql queries
|
||||||
Connection connection = dsl.configuration().connectionProvider().acquire();
|
Connection connection = dsl.configuration().connectionProvider().acquire();
|
||||||
try (PreparedStatement statement = connection.prepareStatement(parameters.getSql())) {
|
try (PreparedStatement statement = connection.prepareStatement(parameters.getSql())) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue