Skip to content
Snippets Groups Projects
Commit 81ab5a7e authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

debusgging printouts

parent caaa1b41
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ In this example, `find_table_name_in_manifest` is used to search for a table in
function find_table_name_in_manifest(conn::MySQL.Connection, method_name::String, arguments_string::String, arguments::Dict)
# Serialize the arguments dictionary to a JSON string
arguments_dict = bytes2hex(sha256(JSON.json(arguments)))
println("do we get here?")
# Prepare and execute a query to check if the entry exists in the manifest table
query = """
SELECT result_table_name
......@@ -186,7 +186,7 @@ function find_table_name_in_manifest(conn::MySQL.Connection, method_name::String
WHERE method_name = '$method_name' AND arguments_string = '$arguments_string' AND arguments_dict = '$arguments_dict';
"""
result = query_connection(conn, query)
println("do we get here?")
# Check if a result was found
if !isempty(result)
return result[1, 1] # Return the first matching table name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment