IBCScript and Comments

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
SeaCay
Posts: 26
Joined: Wed 10 Jan 2007 03:03

IBCScript and Comments

Post by SeaCay » Sat 23 Jun 2007 02:25

Hi

When I generate an InterBase script internally in Delphi code, I like to comment the script with critical info such as Date and time, program version info, function of the script and reason for creation. eg at top of script
  • /**************************************/
    /* Date: 23rd June 2007 */
    /* Time: 11:53 */
    /* Program: MyProg V1.2.3.4 */
    /* Script rebuilds xyz table */
    /* User requested initialization */
    /**************************************/
at the end of the script I add three lines
  • /* End of Script - Create table xyz */
Running the script through IBCScript i get an error message relating to the comments at the end of the script

The error message is
  • Dynamic SQL Error
    SQL Error code = 104
    Unexpected end of command - line 0, column -11423
I have removed the comments at the end of script prior to execution and the script runs cleanly.

can you confirm my findings please and if so, correct the problem. Also, can you add IBCScript property to specify what constitutes comments including singular comments eg // and comment wrappers such as /* */

regards

SeaCay

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Sat 23 Jun 2007 07:53

We will support commentary statements in the IBCScript component in the next IBDAC build.
As to the // commentary definition is not supported by InterBase/Firebird server, so IBCScript will not support it either.

Post Reply