Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Ingres Topics / July 2008

Tip: Looking for answers? Try searching our database.

About PMGet function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zhenchen17 - 24 Jul 2008 13:44 GMT
Hi folks,
I have a question about PMget and the configuration file format.
In the Wiki :  http://community.ingres.com/wiki/Ingres_CL_PM
it is said that :

Value String     Any number of concatenated "Undelimited Value Strings"
and "Delimited Value Strings." A value string which consists only of
whitespace evaluates to an empty (NULL terminated, zero-length)
string. When two delimited value strings are concatenated on the same
line, they must be separated by one or more whitespace characters.

however, in the config.dat file,  the  "Delimited Value Strings" seems
separated by comma:

ii.chenz.gcn.check_type:                connect,install,class
ii.chenz.privileges.user.administrator:
SERVER_CONTROL,NET_ADMIN,MONITOR,TRUSTED

Which one is right?

Also if u specify Value String with "Delimited Value Strings" such as
"connect,install,class" and when using PMGet to fetch the data , PMGet
will return them as a whole string or separated ones?

Thanks
Chenzhen
Karl & Betty Schendel - 24 Jul 2008 15:09 GMT
> Hi folks,
> I have a question about PMget and the configuration file format.
[quoted text clipped - 15 lines]
>
> Which one is right?

As best as I can tell from a quick look at the mess that is glf/pm.c,
the wiki is right.  The confusion arises because a string like
    connect,install,class
is ONE undelimited value string, that happens to contain commas.

    connect, install, class
is (probably) THREE undelimited value strings that get concatenated.
I don't know if it preserves the whitespace which is the delimiter;
my guess is no, but I'd have to spend more time staring at it,
or trying an example.

This should answer your next question too:

> Also if u specify Value String with "Delimited Value Strings" such as
> "connect,install,class" and when using PMGet to fetch the data , PMGet
> will return them as a whole string or separated ones?

One string.

Karl
zhenchen17 - 25 Jul 2008 10:20 GMT
Thanks Karl,
I took a look at gl/pm.c PMmSearch function, It seems nothing special
to deal with the value string delimited by whitespace, it always
return the match value :)
So i guess is there any special actions that interpreting delimited
values string as separated ones when reading the config file?  I have
no idea for i am not familiar with the yy program.

On 7月24日, 下午10时09分, Karl & Betty Schendel <schen...@kbcomputer.com>
wrote:

> > Hi folks,
> > I have a question about PMget and the configuration file format.
[quoted text clipped - 36 lines]
>
> Karl
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.