Return-Path: Delivered-To: apmail-ibatis-user-cs-archive@www.apache.org Received: (qmail 49543 invoked from network); 11 Jul 2007 15:54:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 15:54:45 -0000 Received: (qmail 58199 invoked by uid 500); 11 Jul 2007 15:54:47 -0000 Delivered-To: apmail-ibatis-user-cs-archive@ibatis.apache.org Received: (qmail 58192 invoked by uid 500); 11 Jul 2007 15:54:47 -0000 Mailing-List: contact user-cs-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-cs@ibatis.apache.org Delivered-To: mailing list user-cs@ibatis.apache.org Received: (qmail 58181 invoked by uid 99); 11 Jul 2007 15:54:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 08:54:47 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_AHBL_RHSBL,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mike.schall@gmail.com designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 08:54:44 -0700 Received: by an-out-0708.google.com with SMTP id d33so500961and for ; Wed, 11 Jul 2007 08:54:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KHhaAtE8S+LMvxA82NziKn3dbUgw6+Yknn0YehrDizVdq0Z9eE403HP0KiVxnn/TzWI3lfHh3j6kX50qMoz8j0QKmwggREdiZ7V9zl2xU92+BIruPL8NrMfY7fuyTHcMwtkFYeO5SR/fzrt06U+ZUt5bLvU9rfLFAOfso55/Y4E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=H4DyIFU/BXkrNZ5SqKumTjpyNCrxSQdsBMg4RPjGqTgm2VHTvVfrtilAsfYY8DrKJtxS0cc0RsB6cRAcp3O5dOsMcAzLQ8zQ1i6oMwbq/vzSyVW5JEzaA0eRPef3WAYXQXd/FvIiNhgCmZROvSxMTV+xWpsc1HmdSBCM2Lzv9jU= Received: by 10.100.91.6 with SMTP id o6mr2854836anb.1184169263227; Wed, 11 Jul 2007 08:54:23 -0700 (PDT) Received: by 10.100.46.5 with HTTP; Wed, 11 Jul 2007 08:54:23 -0700 (PDT) Message-ID: <5f9068320707110854w7c07de76m5feeeea4091837c5@mail.gmail.com> Date: Wed, 11 Jul 2007 10:54:23 -0500 From: "Michael Schall" To: user-cs@ibatis.apache.org Subject: Re: Generators&FB In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7429_17089298.1184169263176" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_7429_17089298.1184169263176 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Try using $$ in your query instead (RDB$$DATABASE)... I'm pretty sure that is how you escape the #... On 7/11/07, Clough, Samuel (USPC.PRG.Atlanta) wrote: > > I know zero about firebird, so is this a firebird syntax or are you > trying to use iBatis properties to dynamically set the database table name? > > ------------------------------ > *From:* Jakub Scheibe [mailto:jakub.scheibe@gmail.com] > *Sent:* Wednesday, July 11, 2007 11:28 AM > *To:* user-cs@ibatis.apache.org > *Subject:* Generators&FB > > Hi, > > I want to get gen_id from my database (firebird), but when I'm trying to > execute this sql query by iBatis > > SELECT GEN_ID(my_generator_name, 1) from RDB$DATABASE > > I'm getting error like this: > > Unterminated dynamic element in sql (SELECT GEN_ID(my_generator_name, 1) > from RDB$DATABASE).. > > Looks like there is a problem with $ in RDB$DATABASE. > > Any idea how should I do it in iBatis? > > Regards, > Jakub. > ------------------------------ > * > > Princeton Retirement Group, Inc - Important Terms > * > > This E-mail is not intended for distribution to, or use by, any person or > entity in any location where such distribution or use would be contrary to > law or regulation, or which would subject Princeton Retirement Group, Inc. > or any affiliate to any registration requirement within such location. > > This E-mail may contain privileged or confidential information or may > otherwise be protected by work product immunity or other legal rules. No > confidentiality or privilege is waived or lost by any mistransmission. > Access, copying or re-use of information by non-intended or non-authorized > recipients is prohibited. If you are not an intended recipient of this > E-mail, please notify the sender, delete it and do not read, act upon, > print, disclose, copy, retain or redistribute any portion of this E-mail. > > The transmission and content of this E-mail cannot be guaranteed to be > secure or error-free. Therefore, we cannot represent that the information in > this E-mail is complete, accurate, uncorrupted, timely or free of viruses, > and Princeton Retirement Group, Inc. cannot accept any liability for E-mails > that have been altered in the course of delivery. Princeton Retirement > Group, Inc. reserves the right to monitor, review and retain all electronic > communications, including E-mail, traveling through its networks and systems > (subject to and in accordance with local laws). If any of your details are > incorrect or if you no longer wish to receive mailings such as this by > E-mail please contact the sender by reply E-mail. > ------------------------------ > ------=_Part_7429_17089298.1184169263176 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Try using $$ in your query instead (RDB$$DATABASE)... I'm pretty sure that is how you escape the #...

On 7/11/07, Clough, Samuel (USPC.PRG.Atlanta) < Samuel_Clough@princetonrg.com> wrote:
I know zero about firebird, so is this a firebird syntax or are you trying to use iBatis properties to dynamically set the database table name?


From: Jakub Scheibe [mailto:jakub.scheibe@gmail.com]
Sent: Wednesday, July 11, 2007 11:28 AM
To: user-cs@ibatis.apache.org
Subject: Generators&FB

Hi,

I want to get gen_id from my database (firebird), but when I'm trying to execute this sql query by iBatis

SELECT GEN_ID(my_generator_name, 1) from RDB$DATABASE

I'm getting error like this:

Unterminated dynamic element in sql (SELECT GEN_ID(my_generator_name, 1) from RDB$DATABASE)..

Looks like there is a problem with $ in RDB$DATABASE.

Any idea how should I do it in iBatis?

Regards,
Jakub.

Princeton Retirement Group, Inc - Important Terms

This E-mail is not intended for distribution to, or use by, any person or entity in any location where such distribution or use would be contrary to law or regulation, or which would subject Princeton Retirement Group, Inc. or any affiliate to any registration requirement within such location.

This E-mail may contain privileged or confidential information or may otherwise be protected by work product immunity or other legal rules. No confidentiality or privilege is waived or lost by any mistransmission. Access, copying or re-use of information by non-intended or non-authorized recipients is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail.

The transmission and content of this E-mail cannot be guaranteed to be secure or error-free. Therefore, we cannot represent that the information in this E-mail is complete, accurate, uncorrupted, timely or free of viruses, and Princeton Retirement Group, Inc. cannot accept any liability for E-mails that have been altered in the course of delivery. Princeton Retirement Group, Inc. reserves the right to monitor, review and retain all electronic communications, including E-mail, traveling through its networks and systems (subject to and in accordance with local laws). If any of your details are incorrect or if you no longer wish to receive mailings such as this by E-mail please contact the sender by reply E-mail.



------=_Part_7429_17089298.1184169263176--