Permalink
Browse files

Fixed error when tablename contains spaces

Fixes #58
  • Loading branch information...
RobWunderlich committed Nov 30, 2016
1 parent fe6ab7a commit ab264c6a8cba9f75e7afa962a68a5bbb99c6a1dc
Showing with 3 additions and 3 deletions.
  1. +3 −3 QVC_Source/Qvc_Utility.qvs
  2. BIN Tests/Test_GetFieldValues.qvw
@@ -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:
Binary file not shown.

0 comments on commit ab264c6

Please sign in to comment.