Welcome Guest, Not a member yet? Register   Sign In
sometimes get error Duplicate entry for key 'PRIMARY'
#4

(02-24-2015, 12:25 PM)Narf Wrote: No, but if you want to use 'sess_match_ip', you must add a unique constraint for id, ip_address ... like explained in the manual: http://www.codeigniter.com/userguide3/li...ase-driver

it works ...
thank you ... 

Code:
PRIMARY KEY (`id`),
UNIQUE INDEX `id_ip_address` (`id`, `ip_address`),
INDEX `timestamp` (`timestamp`)
)
Reply


Messages In This Thread
RE: sometimes get error Duplicate entry for key 'PRIMARY' - by karnadi - 02-26-2015, 10:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB