If we pass version as int to SQLAlchemy and PostgreSQL is used, the SQLAlchemy throws an (ProgrammingError) operator does not exist: character varying = bigint exception. The reason is that ModuleBuild.version is string in our DB schema, but Modulemd.get_version() returns int.
This PR fixes that by casting version to str everytime in get_build_from_nsvc(...).
If we pass
version
asint
to SQLAlchemy and PostgreSQL is used, the SQLAlchemy throws an(ProgrammingError) operator does not exist: character varying = bigint
exception. The reason is thatModuleBuild.version
is string in our DB schema, butModulemd.get_version()
returnsint
.This PR fixes that by casting
version
tostr
everytime inget_build_from_nsvc(...)
.