Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

python sqlite3 inserting null values when not allowed

Greetings,
I've been playing around with sqlite in python. I have this issue where I need the primary key to increment (sql side only). It keeps inserting null values there even if I specify to not allow null. :D
Anyone have success with this? I've googled and found a few suggestions; no luck. It always has the same results. I also get the same results if I slam the insert function in my script or if I take it nice and slow. I must be doing something wrong.

connection method:
connect = sqlite3.connect(sqlFile, isolation_level=None)

[Image: SL0xQm4.png]
defu x deuf python

enjoy
(Sep 16, 2016 11:24 AM)█BORNE█ Wrote:  defu x deuf python

enjoy

Mind explaining what you mean by defu x deuf? Never heard that before. Are you saying its shit?


Though it would be great, I dropped the autoincrement. My functions aren't calling those queries anymore so I'm just marking this solved.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Source] by HackersNov 19, 2024 01:51 PM 15 688 Nov 19, 2024 01:51 PM
Last Post: Hackers
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by simmerDec 3, 2021 06:39 AM 4 177 Dec 3, 2021 06:39 AM
Last Post: simmer