Raised This Month: $32 Target: $400
 8% 

[ANY] Clientprefs Cleaner (Cookies Purge)


Post New Thread Reply   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-05-2014 , 03:47   Re: [ANY] Clientprefs Cleaner (Cookies Purge)
Reply With Quote #11

https://github.com/zadroot/Clientpre...cleaner.sp#L44

This could print garbage if it can connect to the database but clientprefs isn't loaded, as decl is used for the error buffer.

Quote:
Originally Posted by asherkin View Post
SQLite isn't designed to have multiple connections open to a file, this could easily corrupt the database (and I'm surprised it doesn't error anyway).
Also going to unapprove because of ^
__________________
asherkin is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-10-2014 , 04:34   Re: [ANY] Clientprefs Cleaner (Cookies Purge)
Reply With Quote #12

Quote:
Originally Posted by asherkin View Post
Also going to unapprove because of ^
The persistent parameter in SQL_Connect is true, meaning that it'll attempt to reuse an already-established database connection. Wouldn't this reuse clientprefs' connection to the SQLite database and therefore not cause errors/corruption?
__________________
Dr. McKay is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-10-2014 , 04:50   Re: [ANY] Clientprefs Cleaner (Cookies Purge)
Reply With Quote #13

Quote:
Originally Posted by Dr. McKay View Post
The persistent parameter in SQL_Connect is true, meaning that it'll attempt to reuse an already-established database connection. Wouldn't this reuse clientprefs' connection to the SQLite database and therefore not cause errors/corruption?
Looks like it!
__________________
asherkin is offline
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 05-09-2020 , 03:07   Re: [ANY] Clientprefs Cleaner (Cookies Purge)
Reply With Quote #14

Can someone add MYSQL support, please?
r3v is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode