Subject RE: [firebird-support] Unexpected End of Command
Author

Maybe a database corruption. Try backup and restore your database

Em 03/11/2013 12:25, "Andrew Gable" <andrew.gable@...> escreveu:
 

The SQL command is running inside a Visual basic application and I have this
command working in 5 other
versions of my software (all apart from my NPoS is working)

So how can it work for the others but not this one app?

-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Mark Rotteveel
Sent: 03 November 2013 9:32 AM
To: firebird-support@yahoogroups.com
Subject: Re: [firebird-support] Unexpected End of Command

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 readable.

...

> 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
--
Mark Rotteveel

------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu. Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo Groups Links

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4158 / Virus Database: 3615/6803 - Release Date: 11/02/13