Session: Exist() method now works correctly for sessions stored in sqlite databases.

[GB.WEB]
* BUG: Session: Exist() method now works correctly for sessions stored in sqlite databases.
This commit is contained in:
gambas 2018-06-19 00:30:29 +02:00
parent 3bd9dca142
commit 5e2a99a0a0
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
[Component]
Key=gb.web
Version=3.10.90
Version=3.11.90
Authors=Benoît Minisini
Include=gb.util.web

View file

@ -1,7 +1,7 @@
# Gambas Project File 3.0
Title=Web applications tools
Startup=Main
Version=3.10.90
Version=3.11.90
VersionFile=1
Component=gb.db
Component=gb.web

View file

@ -295,7 +295,7 @@ Public Sub Exist(Key As String) As Boolean
If $cDelete.Exist(Key) Then Return
If $cValues.Exist(Key) Then Return True
Return $hConn.Exec("SELECT 1 FROM values WHERE sKey = &1", Key).Available
Return $hConn.Exec("SELECT 1 FROM \"values\" WHERE sKey = &1", Key).Available
End