Subject Re: [firebird-support] Unexpected End of Command
Author Mark Rotteveel
On 2-11-2013 20:01, Andrew Gable wrote:
> I have a problem that has ONLY just started to happen
> When ever I run the following SQL command from within my software
> THIS has been working for the last 3yrs ever since I moved over to
> Firebird (I have software running the same command
> and they are working fine)

The first thing that I wonder is: why aren't you using parametrized
queries? That saves a lot of hassle like escaping and keeps things more


> I get the following error message
> Run-time error ‘-2147467259 (80004005)’;
> [ODBC firebird Driver][Firebird]Dynamic SQL Error
> SQL error code =-104
> Unexpected end of command –line ##, column ***
> ## and *** always change no matter what information I send.

In general it means that the parser ran out of input before it had a
complete parse, eg missing a quote or closing parenthesis does this.

> This is an example of what I am trying to store into the database (Debug
> print out of what i am sending)


At first glance there doesn't seem to be anything wrong with this.

Mark Rotteveel