Welcome Guest, Not a member yet? Register   Sign In
PostgreSQL Model Insert Function Issue
#3

(This post was last modified: 01-29-2022, 05:18 AM by Corda.)

(01-28-2022, 03:01 PM)iRedds Wrote: CI 4.1.8
PgSQL 12.2
SERIAL works.
If your table does not use autoincrement then set the protected property useAutoIncrement to false.

WOW!!!!

You are the BEST!

Thank you so much for useAutoIncrement solutions.
I got it now.
Because I use VARCHAR for the Primary Key, the CodeIgniter automatically runs the useAutoIncrement if I don't set it as false.
If I use BIGINT or BIGSERIAL for the Primary Key, the useAutoIncrement must be true.
If I use VARCHAR for the Primary Key, the useAutoIncrement must be false.
This works well if I set the useAutoIncrement correctly.

Thank you so much for the solutions. You are the BEST!!!
Reply


Messages In This Thread
PostgreSQL Model Insert Function Issue - by Corda - 01-28-2022, 04:55 AM
RE: PostgreSQL Model Insert Function Issue - by Corda - 01-29-2022, 05:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB