Skip to content
Snippets Groups Projects
Verified Commit 318e033a authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: FIND RECORDTYPE with name='{prop.datatype}'", unique=True

parent 45930bd3
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!81F schema export references
Pipeline #42774 failed
......@@ -113,7 +113,7 @@ def _make_prop_from_prop(prop: db.Property, additional_properties: bool,
raise NotImplementedError("Files have not been implemented yet.")
else:
values = _retrieve_enum_values(f"RECORD '{prop.datatype}'")
rt = db.execute_query(f"FIND RECORDTYPE '{prop.datatype}'", unique=True)
rt = db.execute_query(f"FIND RECORDTYPE with name='{prop.datatype}'", unique=True)
subschema = _treat_recordtype(rt, additional_properties,
name_and_description_in_properties,
additional_options_for_text_props,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment