What I’m trying to do:
call delete()
on a database row.
What I’ve tried and what’s not working:
Code Sample:
def delete_media(media,order):
media = check_table_obj(media,app_tables.media) # Grabs row from media table
order = check_table_obj(order,app_tables.orders) # Grabs row from order table
if order:
delete_required_link(media,order)
media.delete() # line with error
Here is the error message:
anvil.tables.TableError: Internal database error:
ERROR: function get_lo_size(integer) does not exist
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Position: 34
I never had issue with this method before which leads me to believe it is a result of an update from anvil.
Please help!