[GB.DB.MYSQL]

* NEw: Added the function CurrentUser to MySQL class, that
  returns the current user concatenated with the host.

git-svn-id: svn://localhost/gambas/trunk@1638 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
David Villalobos Cambronero 2008-10-10 21:07:44 +00:00
parent 66b5a20489
commit 50469dfc7c
2 changed files with 11 additions and 0 deletions

View file

@ -387,6 +387,10 @@ CurrentTimestamp
m
s
[(Format)s]
CurrentUser
m
s
Quote
m
s

View file

@ -164,6 +164,13 @@ Public Function CurrentTimestamp(Optional {Format} As String) As String
End
Public Function CurrentUser() As String
modMain.$Query = "SELECT CURRENT_USER"
Return modMain.$Connection.Exec(modMain.$Query)!CURRENT_USER
End
Public Function Quote(Value As Variant) As String
Return "`" & Value & "`"