Re: USER function
Posted in 1991
hal lindstrom — — source: Informix-list mailing list archive (1991-1998)
> >I am using the USER function in Informix/4gl program but get an error >when I compile it. Is this a bug? or is it not functional in 4GL ? > >DECLARE init CURSOR FOR SELECT * from Table_a where id = USER > >Thanks. >Ruchi. The 4.0 reference says you may use the USER keyword in SQL statements wherever you can use a constant of a similar data type. However, you may not use the USER keyword in 4GL statements. You may want to use a C function which picks up the LOGNAME from the environment instead. 4.1 has a function like this built in to 4GL. Also, there is a known bug when using USER in certain forms of the SQL UPDATE statement (online release 4.0). Hope this helps Hal Lindstrom World Wision - Monrovia, CA