Skip to content

Commit

Permalink
LDEV-5102 - change token
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 8, 2024
1 parent 2c53a97 commit 6c779ce
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import lucee.commons.db.DBUtil;
import lucee.commons.lang.ExceptionUtil;
import lucee.commons.lang.SerializableObject;
import lucee.commons.lang.StringUtil;
import lucee.commons.lang.types.RefBoolean;
import lucee.commons.lang.types.RefBooleanImpl;
Expand Down Expand Up @@ -56,7 +57,7 @@
import lucee.runtime.util.threading.StatmentClose;

public class QueryLazy extends BIF {

private static final Object token = new SerializableObject();
private static Closer closer;
private static int RETURN_TYPE_QUERY = 1;
private static int RETURN_TYPE_ARRAY = 2;
Expand Down Expand Up @@ -88,7 +89,7 @@ public Object invoke(PageContext pc, Object[] args) throws PageException {
public static String call(PageContext pc, String strSQL, UDF listener, Object params, Struct options) throws PageException {

if (closer == null) {
synchronized (options) {
synchronized (token) {
if (closer == null) {
closer = new Closer(ThreadLocalPageContext.getLog(pc, "datasource"));
}
Expand Down

0 comments on commit 6c779ce

Please sign in to comment.