Re: [BUGS] BUG #4944: Problems with using \set variables as strings in select statements

2009-07-27 Thread Rolf Jentsch
Hallo Bruno, Am Montag, 27. Juli 2009 15:50 schrieb Bruno Scovoli Santos: >... > brunodb=# \set nom 'Intel' > euclidhardware=# select * from fabricantes where nome like :nom; > ERROR: column "intel" does not exist > LINE 1: select * from fabricantes where nome like Intel; > > Please, I have trie

Re: [BUGS] BUG #4944: Problems with using \set variables as strings in select statements

2009-07-27 Thread Tom Lane
"Bruno Scovoli Santos" writes: > brunodb=# \set nom 'Intel' > euclidhardware=# select * from fabricantes where nome like :nom; > ERROR: column "intel" does not exist > LINE 1: select * from fabricantes where nome like Intel; If you want to put quotes in the value of a variable, you need this \se

[BUGS] BUG #4944: Problems with using \set variables as strings in select statements

2009-07-27 Thread Bruno Scovoli Santos
The following bug has been logged online: Bug reference: 4944 Logged by: Bruno Scovoli Santos Email address: bruno.scov...@gmail.com PostgreSQL version: 8.3.7 Operating system: Ubuntu 9.04 Jaunty Jackalope Description:Problems with using \set variables as strings in s