[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:
parent
66b5a20489
commit
50469dfc7c
2 changed files with 11 additions and 0 deletions
|
@ -387,6 +387,10 @@ CurrentTimestamp
|
|||
m
|
||||
s
|
||||
[(Format)s]
|
||||
CurrentUser
|
||||
m
|
||||
s
|
||||
|
||||
Quote
|
||||
m
|
||||
s
|
||||
|
|
|
@ -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 & "`"
|
||||
|
|
Loading…
Reference in a new issue