PostgreSQL - can't save items - "type integer but expression is of type character"
- by user984621
I am getting still over and over again this error, the column age has the type integer, I am saving into this column integer-value, I also tried to don't save nothing into this column, but still getting this error...
Could anyone help me, how to fix that?
PG::Error: ERROR: column "age" is of type integer but expression is of type character varying at character 102
HINT: You will need to rewrite or cast the expression.
: INSERT INTO "user_details" ("created_at", "age", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"