Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » Req #51295: busyTimeout method for SQLite3 [RSS Feed]

#1 March 14, 2010 07:40:00

Mark K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Req #51295: busyTimeout method for SQLite3


Hello,

I've been encountering a problem with SELECT queries and SQLite3 as load
was growing on my system. From times to times I was getting this error:

Warning: SQLite3Stmt::execute(): Unable to execute statement: database
is locked

After searching on google I saw I should call sqlite3_busy_timeout() and
found out that there was no way to call it from the SQLite3 extension
(which is new to PHP 5.3.x).

Here's a patch that will add this method to the SQLite3 class:http://bugs.php.net/51295https://ookoo.org/svn/snip/php_5_3-sqlite3-busytimeout-method.patchAny comment welcome.


Mark


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 April 7, 2017 00:43:14

Prokofev6P
Registered: 2017-04-06
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

Req #51295: busyTimeout method for SQLite3

This post is being moderated

Offline

#3 April 8, 2017 15:38:25

Prokofev6P
Registered: 2017-04-06
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

Req #51295: busyTimeout method for SQLite3

This post is being moderated

Offline

  • Root
  • » PHP
  • » Req #51295: busyTimeout method for SQLite3 [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support