Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Case in the field name disappears only for me? #15

Open
alexsuslov opened this issue Feb 12, 2013 · 2 comments
Open

Case in the field name disappears only for me? #15

alexsuslov opened this issue Feb 12, 2013 · 2 comments

Comments

@alexsuslov
Copy link

Hi!

DBWrapper = require('node-dbi').DBWrapper;
var Config= { host: 'localhost', database: 'tmp'}

var dbWrapper = new DBWrapper('pg', Config);
dbWrapper.connect();

var item = {"sName": 'Milky'};

dbWrapper.update('"Users"."Company"', item, ['\"idCompany\" = 1'], function(err, resp) {
  if (err) {throw err}
  if (resp) {console.log(resp)}
});

error: column "sname" of relation "Company" does not exist

@alexsuslov
Copy link
Author

It problem is only with update. Select and insert go normal.
for update i use
""Dragon_Users"."tCompany""
look like voodoo

@olivierphi
Copy link
Owner

@alexsuslov I don't know postgres enough to be able to solve such a bug, sorry. But I would be glad to work with you and your knowledge of Pg to solve this issue together! :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants