Skip to content

Commit

Permalink
Fixed error when tablename contains spaces
Browse files Browse the repository at this point in the history
Fixes #58
  • Loading branch information
RobWunderlich committed Nov 30, 2016
1 parent fe6ab7a commit ab264c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QVC_Source/Qvc_Utility.qvs
Expand Up @@ -18,11 +18,11 @@ UNQUALIFY "_qvctemp.*"; // UNQUALIFY all qvctemp fields
IF len('$(_vTable)')=0 THEN
SET _vSource = ";LOAD FieldValue('$(_field)', recno()) as [$(_field)] AUTOGENERATE FieldValueCount('$(_field)')";
ELSEIF index('$(_vTable)', '.') = 0 THEN
SET _vSource = 'RESIDENT $(_vTable)';
SET _vSource = 'RESIDENT [$(_vTable)]';
ELSEIF '.qvd' = lower(right('$(_vTable)', 4)) THEN
SET _vSource = 'FROM $(_vTable) (qvd)';
SET _vSource = 'FROM [$(_vTable)] (qvd)';
ELSE
SET _vSource = 'FROM $(_vTable)'; // Assume text file
SET _vSource = 'FROM [$(_vTable)]'; // Assume text file
ENDIF

_qvctemp.temptab:
Expand Down
Binary file modified Tests/Test_GetFieldValues.qvw
Binary file not shown.

0 comments on commit ab264c6

Please sign in to comment.