You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: SQLSTATE[42883]: Undefined function: 7 ERROR: function upper(bigint) does not exist LINE 1: select count() as aggregate from "assets" where (UPPER(asse... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. (Connection: tenant, SQL: select count() as aggregate from "assets" where (UPPER(assets.id) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru% or UPPER(assets.name) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru% or UPPER(assets.erp_number) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru% or UPPER(assets.cutting_machine) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru%) and "assets"."deleted_at" is null)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Error:
ERROR: SQLSTATE[42883]: Undefined function: 7 ERROR: function upper(bigint) does not exist LINE 1: select count() as aggregate from "assets" where (UPPER(asse... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. (Connection: tenant, SQL: select count() as aggregate from "assets" where (UPPER(assets.id) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru% or UPPER(assets.name) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru% or UPPER(assets.erp_number) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru% or UPPER(assets.cutting_machine) LIKE %TRU% or (select "name" from "operations" where "operations"."id" = "assets"."operation_id" and "operations"."deleted_at" is null limit 1)::text ilike %tru%) and "assets"."deleted_at" is null)
Possible solution:
Do not use UPPER() on numeric columns like id.
Beta Was this translation helpful? Give feedback.
All reactions