BUG: MLINE() with Select-SQL Group By Clause Causes Error

Last reviewed: April 24, 1997
Article ID: Q157189
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a

SYMPTOMS

If a SELECT-SQL query is grouped by a field that is displayed using the MLINE() command, then executing the statement produces the following error and a result set is not created:

   SQL: Internal Error

WORKAROUND

You can use a combination of string functions and MEMOWIDTH as in this example:

   SELECT Fld1, LEFT(Fld2,set('MEMOWIDTH')) FROM test GROUP BY 2

STATUS

Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create and populate a table with a memo field as follows:

          CREATE TABLE test (Fld1 c(5), Fld2 m)
          INSERT INTO test VALUES("aaaaa","aaaaaaaaaaaaaaaaaaaa")
          INSERT INTO test VALUES("bbbbb","bbbbbbbbbbbbbbbbbbbb")
    

  2. Issue the following command:

          SELECT Fld1, MLINE(Fld2,1) FROM test GROUP BY 2
     
    
    
    	
    	


Keywords : buglist5.00 FxprgSql kbprg VFoxWin vfpbug5.0a kbbuglist kbprg
Version : 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.