Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Error -213  (Read 9246 times)
Paul S.
Posts: 45


« on: August 18, 2011, 09:54:30 pm »

When doing large searches I allow the user to press the "Cancel" button to interrupt the SQL.

This all works fine, but an error -213 always appears in the errorlog , is there any way to stop this happening.

Using later 2.32.x versions of frontend (Redhat) and backend (windows-xp)

Thanks

Paul
Sebastien F.
Four Js
Posts: 509


« Reply #1 on: August 19, 2011, 09:18:20 am »

Hello Paul,

Can you provide a sample to reproduce?

With the following code I don't get any error trace in the log file:

Code
  1. main
  2.    define i int
  3.    call startlog("mylog.txt")
  4.    defer interrupt
  5.    options sql interrupt on
  6.    database test1
  7.    create temp table tt1 ( k int, c char(10) )
  8.    for i=1 to 1000
  9.        insert into tt1 values ( 1, 'aaaa' )
  10.    end for
  11.    open form f1 from "int"
  12.    display form f1
  13.    menu "test"
  14.       command "go"
  15.          let int_flag = false
  16.          whenever error continue
  17.          select count(*) from tt1 a1, tt1 a2, tt1 a3, tt1 a4
  18.          whenever error stop
  19.          display "int_flag = ", int_flag
  20.          display "sqlcode  = ", sqlca.sqlcode
  21.       command "exit"
  22.          exit program
  23.    end menu
  24. end main

Are you using WHENEVER ERROR CONTINUE?

Doc ref:
https://4js.com/online_documentation/fjs-fgl-manual-html/User/SqlProgramming.html#SQL_INTERRUPTION
https://4js.com/online_documentation/fjs-fgl-manual-html/User/Exceptions.html#TRACE

Seb
Paul S.
Posts: 45


« Reply #2 on: August 19, 2011, 10:17:30 pm »

Thanks for the reply, I will tried and get a test together over the weekend.

Paul
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines