From cce86bd91e0ecc1a4207c5c5acbb303ae16e704a Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Sat, 30 May 2026 10:02:29 -0700 Subject: [PATCH] Continue enhancing SQL protections --- protein/api-src/org/labkey/api/protein/go/GoLoader.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protein/api-src/org/labkey/api/protein/go/GoLoader.java b/protein/api-src/org/labkey/api/protein/go/GoLoader.java index 03be0043e..768924f6f 100644 --- a/protein/api-src/org/labkey/api/protein/go/GoLoader.java +++ b/protein/api-src/org/labkey/api/protein/go/GoLoader.java @@ -16,7 +16,6 @@ package org.labkey.api.protein.go; -import jakarta.servlet.ServletException; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; import org.apache.commons.io.IOUtils; @@ -25,6 +24,7 @@ import org.labkey.api.data.DbSchema; import org.labkey.api.data.DbScope; import org.labkey.api.data.JdbcType; +import org.labkey.api.data.SQLFragment; import org.labkey.api.data.SqlExecutor; import org.labkey.api.data.TableInfo; import org.labkey.api.data.TableSelector; @@ -146,16 +146,16 @@ public void load() public static void dropGoIndexes() { DbSchema schema = ProteinSchema.getSchema(); - new SqlExecutor(schema).execute(schema.getSqlDialect().execute(schema, "drop_go_indexes", "")); + new SqlExecutor(schema).execute(schema.getSqlDialect().execute(schema, "drop_go_indexes", new SQLFragment())); } public static void createGoIndexes() { DbSchema schema = ProteinSchema.getSchema(); - new SqlExecutor(schema).execute(schema.getSqlDialect().execute(schema, "create_go_indexes", "")); + new SqlExecutor(schema).execute(schema.getSqlDialect().execute(schema, "create_go_indexes", new SQLFragment())); } - private void loadGoFromGz() throws SQLException, IOException, ServletException + private void loadGoFromGz() throws SQLException, IOException { Map map = getGoLoadMap(); long start = System.currentTimeMillis();