dbTalk Databases Forums  

RSgvs_GenVal2Str

comp.databases.ingres comp.databases.ingres


Discuss RSgvs_GenVal2Str in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex
 
Posts: n/a

Default RSgvs_GenVal2Str - 11-28-2008 , 09:02 AM






Greetings,

Does anyone know what the purpose of this Ingres function was? It no
longer exists in the current main codeline but it was used in the
past. Thanks

Reply With Quote
  #2  
Old   
Michael Leo
 
Posts: n/a

Default Re: [Info-Ingres] RSgvs_GenVal2Str - 11-29-2008 , 10:42 AM






Alex wrote:
Quote:
Greetings,

Does anyone know what the purpose of this Ingres function was? It no
longer exists in the current main codeline but it was used in the
past. Thanks
That generates the Val2Str for the RSgvs subsystem.

No, all kidding aside ... In what context is it used? That
might help us understand what it was supposed to do.

Cheers,

Mike Leo





Reply With Quote
  #3  
Old   
kbcomput@kbcomputer.com
 
Posts: n/a

Default Re: [Info-Ingres] RSgvs_GenVal2Str - 11-29-2008 , 05:51 PM



Alex wrote:

Quote:
Does anyone know what the purpose of this Ingres function was? It no
longer exists in the current main codeline but it was used in the
past. Thanks
RS sounds like Replication Server. I am away from the code this
weekend, but I'd guess it was some sort of replication server
generic value printer.

What are you doing that needs RSgvs_GenVal2Str?

Karl




Reply With Quote
  #4  
Old   
Alex
 
Posts: n/a

Default Re: RSgvs_GenVal2Str - 12-01-2008 , 06:31 AM



On Nov 29, 6:51*pm, kbcom... (AT) kbcomputer (DOT) com wrote:
Quote:
Alex wrote:

Does anyone know what the purpose of this Ingres function was? It no
longer exists in the current main codeline but it was used in the
past. Thanks

RS sounds like Replication Server. *I am away from the code this
weekend, but I'd guess it was some sort of replication server
generic value printer.

What are you doing that needs RSgvs_GenVal2Str?

Karl
I'm looking at a file that was deleted in 1998 that uses this
function. I'm trying to decipher what it actually does... Here's the
context:

if (RSgvs_GenVal2Str(col, dk, where_list + STlength(where_list)) !=
OK)
return (RS_INTERNAL_ERR);

This is a file that uses ESQL, and I'm looking at it to get a better
idea how to use parameterized queries in updates. Also wondering if
it's possible to use parameters in a delete query.
Thanks

Alex


Reply With Quote
  #5  
Old   
Karl & Betty Schendel
 
Posts: n/a

Default Re: [Info-Ingres] RSgvs_GenVal2Str - 12-01-2008 , 06:45 AM




On Dec 1, 2008, at 7:31 AM, Alex wrote:

Quote:
On Nov 29, 6:51 pm, kbcom... (AT) kbcomputer (DOT) com wrote:
Alex wrote:

Does anyone know what the purpose of this Ingres function was? It no
longer exists in the current main codeline but it was used in the
past. Thanks

RS sounds like Replication Server. I am away from the code this
weekend, but I'd guess it was some sort of replication server
generic value printer.

What are you doing that needs RSgvs_GenVal2Str?

Karl

I'm looking at a file that was deleted in 1998 that uses this
function. I'm trying to decipher what it actually does... Here's the
context:

if (RSgvs_GenVal2Str(col, dk, where_list + STlength(where_list)) !=
OK)
return (RS_INTERNAL_ERR);

That is indeed part of an old variant of the Replication Server.
(STlength is an Ingres internal equivalent of strlen(), and it's a
dead giveaway along with the RS_INTERNAL_ERR symbol.) You can assume
that RSgvs_GenVal2Str takes some kind of generic value and makes a
string out of it. Apparently the code is building a WHERE clause.

Delete and update queries both allow parameters in the WHERE clause.
Neither allow them in the FROM clause, as far as I know.
I'm pretty sure that UPDATE allows them in the SET clauses but I'm
not 100% positive about that one.
Are you using parameters in the :host-variable sense, or ?-markers
in a PREPARE statement?

Karl



Reply With Quote
  #6  
Old   
Alex
 
Posts: n/a

Default Re: RSgvs_GenVal2Str - 12-01-2008 , 07:48 AM



On Dec 1, 7:45*am, Karl & Betty Schendel <schen... (AT) kbcomputer (DOT) com>
wrote:
Quote:
On Dec 1, 2008, at 7:31 AM, Alex wrote:



On Nov 29, 6:51 pm, kbcom... (AT) kbcomputer (DOT) com wrote:
Alex wrote:

Does anyone know what the purpose of this Ingres function was? It no
longer exists in the current main codeline but it was used in the
past. Thanks

RS sounds like Replication Server. *I am away from the code this
weekend, but I'd guess it was some sort of replication server
generic value printer.

What are you doing that needs RSgvs_GenVal2Str?

Karl

I'm looking at a file that was deleted in 1998 that uses this
function. I'm trying to decipher what it actually does... Here's the
context:

if (RSgvs_GenVal2Str(col, dk, where_list + STlength(where_list)) !=
OK)
* * * *return (RS_INTERNAL_ERR);

That is indeed part of an old variant of the Replication Server.
(STlength is an Ingres internal equivalent of strlen(), and it's a
dead giveaway along with the RS_INTERNAL_ERR symbol.) *You can assume
that RSgvs_GenVal2Str takes some kind of generic value and makes a
string out of it. *Apparently the code is building a WHERE clause.

Delete and update queries both allow parameters in the WHERE clause.
Neither allow them in the FROM clause, as far as I know.
I'm pretty sure that UPDATE allows them in the SET clauses but I'm
not 100% positive about that one.
Are you using parameters in the :host-variable sense, or ?-markers
in a PREPARE statement?

Karl
They are used as ?-markers


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.