Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread ? in query
Fri, Jul 25 2008 2:10 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

Just to get the syntax right I pasted this into EDBManager as a new query

SELECT * FROM Articulos WHERE CODIGO COLLATE ANSI =?

It ran - empty dataset as the result but I would have expected either an error message or a prompt for a value, probably the former.

Roy Lambert
Fri, Jul 25 2008 2:49 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Just to get the syntax right I pasted this into EDBManager as a new query

SELECT * FROM Articulos WHERE CODIGO COLLATE ANSI =?

It ran - empty dataset as the result but I would have expected either an
error message or a prompt for a value, probably the former. >>

Nope - you're effectively specifying a native parameter placemark, which is
valid (ODBC uses this, for example).  However, the application must then add
the parameter manually also, which the EDB Manager is not capable of doing.

--
Tim Young
Elevate Software
www.elevatesoft.com

Sat, Jul 26 2008 4:40 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

>Nope - you're effectively specifying a native parameter placemark, which is
>valid (ODBC uses this, for example). However, the application must then add
>the parameter manually also, which the EDB Manager is not capable of doing.

Didn't you forget the "yet"?

Roy Lambert
Mon, Jul 28 2008 4:20 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Didn't you forget the "yet"? >>

No.  Why would we need to allow for manual parameter adding when you can use
the colon notation in the actual SQL to specify a parameter addition right
now ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Jul 29 2008 7:03 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

>No. Why would we need to allow for manual parameter adding when you can use
>the colon notation in the actual SQL to specify a parameter addition right
>now ?

The only reason I can think of is that its valid sql and if I want to test a statement in EDBManager I have to alter it. One of the nice improvements from DBSys is that I can enter parameters so I'm removing one more point of cock up in testing.

Roy Lambert
Tue, Jul 29 2008 5:33 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< The only reason I can think of is that its valid sql and if I want to
test a statement in EDBManager I have to alter it. >>

But this isn't really an SQL statement that you would enter into your Delphi
application either, so I'm not sure where the altering part is coming in.

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Jul 30 2008 3:21 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


>But this isn't really an SQL statement that you would enter into your Delphi
>application either, so I'm not sure where the altering part is coming in.

True, where it came from in my case was I wanted to test a portion of a procedure so just cut'n'paste into a query...

Roy Lambert
Image