LIMIT ERROR on SQAGetWarning?

Using (or providing) components based on the "Win32" framework

LIMIT ERROR on SQAGetWarning?

Postby MBaas on Tue Feb 23, 2010 1:59 pm

The following line of code
Code: Select all
warn←⍕#.sql.SQAGetWarning'C1.P1'

has just produced a LIMIT ERROR (in 10.1). Any suggestions on how to avoid this one?
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Re: LIMIT ERROR on SQAGetWarning?

Postby Morten|Dyalog on Tue Feb 23, 2010 2:04 pm

Never seen that before... What's the result of SQAGetWarning, what was the operation that produced a warning, etc etc :-)?
User avatar
Morten|Dyalog
 
Posts: 453
Joined: Tue Sep 09, 2008 3:52 pm

Re: LIMIT ERROR on SQAGetWarning?

Postby MBaas on Tue Feb 23, 2010 2:23 pm

I can't replicate it here, it happened at a client's site, where they use a different driver to connect to the database. I was doing a SELECT there and got a -1 as result, so I wanted to check the warnings. Have now rewritten the code to get some more info on that result (and trap Errors), hope to get info today about how it worked...
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Re: LIMIT ERROR on SQAGetWarning?

Postby Morten|Dyalog on Tue Feb 23, 2010 2:44 pm

You can get a LIMIT ERROR trying to format arrays that are not in themselves "enormous", although I don't quite see how that could be the case here... For exammple:

Code: Select all
      x←(⍪x)(x←100000⍴'A')
      ⎕size 'x'
200060
      ⍕x
LIMIT ERROR
      ⍕x
     ∧
User avatar
Morten|Dyalog
 
Posts: 453
Joined: Tue Sep 09, 2008 3:52 pm


Return to Windows: GUI, COM/OLE/ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest