Skip to content

Commit

Permalink
remove line breaks in string
Browse files Browse the repository at this point in the history
  • Loading branch information
justus-springer committed Oct 18, 2023
1 parent e00f82f commit 3aa238b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Database/SQLiteAdapterSurfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ is in the database, this function returns its `id`. Otherwise, it returns
function find_in_database(db :: SQLiteAdapterSurfaces, X :: SurfaceWithTorusAction)
X = is_toric(X) ? normal_form(X) : normal_form(X)[1]
is_toric_str, gen_matrix_str = _db_is_toric(X), _db_gen_matrix(X)
sql = "SELECT $(db.primary_key) FROM $(db.table_name) WHERE \
is_toric == $is_toric_str AND \
gen_matrix == \"$gen_matrix_str\""
sql = "SELECT $(db.primary_key) FROM $(db.table_name) WHERE is_toric == $is_toric_str AND gen_matrix == \"$(gen_matrix_str)\""
res = DBInterface.execute(db.db, sql) |> rowtable
isempty(res) && return nothing
return res[1][Symbol(db.primary_key)]
Expand Down

0 comments on commit 3aa238b

Please sign in to comment.