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
I have a column that was changed from integer to float and the stored procedure keeps reverting to the integer type and breaking on insert with the following error:
PG::InvalidTextRepresentationapp/models/concerns/upsertable.rb:15
ERROR: invalid input syntax for integer:
I've tried dropping the database and recreating it to regenerate new procedures and then committing those. It still breaks on my staging environment as though the procedures are being restored or recreated incorrectly.
The text was updated successfully, but these errors were encountered:
@Ch4s3 If you run something like the following you can clear all currently existing functions created by upsert:
# We do this so it clears all versions of the functionsUpsert::MergeFunction::NAME_PREFIX="upsert"# Following example is for Sequel, replace it with # whatever you need to get a direct connection in your appDB.synchronizedo |conn|
Upsert.clear_database_functions(conn)end
I have a rake task that is run after deployment so fresh versions of the functions are available every time.
I have a column that was changed from integer to float and the stored procedure keeps reverting to the integer type and breaking on insert with the following error:
I've tried dropping the database and recreating it to regenerate new procedures and then committing those. It still breaks on my staging environment as though the procedures are being restored or recreated incorrectly.
The text was updated successfully, but these errors were encountered: