SQLRequest: Do not quote "*" field name in Select() method.

[GB.DB]
* NEW: SQLRequest: Do not quote "*" field name in Select() method.
This commit is contained in:
gambas 2020-11-24 21:42:02 +01:00
parent d7dbc4ee58
commit fd478d91b9

View File

@ -132,9 +132,11 @@ Public Function _call() As String
For I = 0 To $aField.Max
If I Then sReq &= ","
aScan = Scan($aField[i], "* AS *")
aScan = Scan($aField[I], "* AS *")
If aScan.Count = 2 And If InStr(aScan[1], " ") = 0 Then
sReq &= $aField[I]
Else If $aField[I] = "*" Then
sReq &= "*"
Else
sReq &= $hConn.Quote($aField[I])
Endif