Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread CustomFunction event is not fired
Thu, Jun 15 2006 9:30 AMPermanent Link

Mike Mayer
Hello,

I have added "ExtractText" custom function to SQL and declarated this function in DBISAM engine.
Everything worked fine till today, now DBISAMEngineCustomFunction event is never fired when
DBISAM sql parser execute my ExtractText custom function, instead I get sql error below.


...raised exception class EDBISAMEngineError with message 'Engine Error # 11949 SQL parsing error - Expected ) but instead found ( in INSERT SQL statement at line 63, column 62'.
Process stopped. Use Step or Run to continue.

My full sql is

INSERT INTO "document" (ArticleID,SearchText,Binary,Description,Extension,Default,Link)
select ArticleID,ExtractText(Binary,Extension,Link),Binary,Description,Extension,false,Link from Attachment;



Regards,
Mike
Thu, Jun 15 2006 1:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mike,

<< I have added "ExtractText" custom function to SQL and declarated this
function in DBISAM engine. Everything worked fine till today, now
DBISAMEngineCustomFunction event is never fired when DBISAM sql parser
execute my ExtractText custom function, instead I get sql error below. >>

Did you double-check the TDBISAMEngine component and make sure that your
custom function is still declared properly with the correct number of
parameters ?  Also, do you have column name called "ExtractText" anywhere ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Jun 15 2006 3:37 PMPermanent Link

Mike Mayer
<<Did you double-check the TDBISAMEngine component and make sure that your
custom function is still declared properly with the correct number of
parameters ?  >>

Yes, declaration is correct.

<<Also, do you have column name called "ExtractText" anywhere ?>>

ExtractText is a custom function which I want to call from SQL and pass it to
OnCustomFunction event.

Is something wrong with declaration?
Fri, Jun 16 2006 3:04 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mike


I think Tim was concerned that if you have a field called ExtractText and a function called ExtractText the engine would ge confused.

Roy Lambert
Fri, Jun 16 2006 12:51 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I think Tim was concerned that if you have a field called ExtractText and
a function called ExtractText the engine would ge confused. >>

Yes, that was it. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Jun 16 2006 12:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mike,

<< ExtractText is a custom function which I want to call from SQL and pass
it to OnCustomFunction event. >>

As Roy indicated, I was asking whether you might have *both* a column and a
function named ExtractText.  My apologies for not being more clear.  As for
the issue, I double-checked and DBISAM will use the custom function before a
column with the same name anyways, so that wouldn't account for the problem,
which leaves the definition of the function parameters in the TDBISAMEngine
component as the culprit.  Did you double-check the parameters to ensure
that the count was correct ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Jun 19 2006 5:51 AMPermanent Link

Mike Mayer
I have changed custom function name and re-entrered it into DBISAM engine after
that problem is gone. Thanks for help!
Mon, Jun 19 2006 9:59 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mike,

<< I have changed custom function name and re-entrered it into DBISAM engine
after that problem is gone. Thanks for help! >>

Good, I'm glad that you solved the problem.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image