23502

מה אומרת שגיאת Postgres ‏(מסד הנתונים) הזאת

איך זה מופיע

null value in column "<column>" of relation "<table>" violates not-null constraint

מה זה אומר

SQLSTATE 23502 is not_null_violation: the row leaves a required column empty (null), and that column is declared NOT NULL.

הסיבה הנפוצה באפליקציה שנבנתה עם AI

The AI marked a column such as user_id as required in the SQL, but the app's insert does not send it, often because the code expects the database to fill it and no default value was ever set.

בדקו את זה קודם

Look at the column named in the error and check whether your insert sends a value for it or the column has a default value in the Table Editor.

עוד קודים של Postgres ‏(מסד הנתונים)