Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Update problem
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3494 of 3799
Post > Topic >>

Update problem

by sam.mahindrakar@[EMAIL PROTECTED] ("samantha mahindrakar") Jun 3, 2008 at 03:00 PM

Hi....
Iam facing a strange issue....
One of the functions in my program is running an update statement. The
statement is running cross-schema. What i mean is that the program
resides in one schema where as it updates a table from another schema.
How ever these scehmas are on the same database.
The program runs correctly and also prints out the update statement.
But it never actually updates the table.....neither does it fail.
However when i run one of the update statements individually in the
query tool...the update happens.
Iam assuming that this is not a problem with the permissions either
since the permission for the table to be updated is set to public.
iam pasting the update statement for reference:

EXECUTE 'UPDATE '||thepartition||' SET
volume='||updated_volume||',occupancy='||updated_occ||',speed='||updated_speed||'
WHERE lane_id='||lane||' and measurement_start =
'''||measurement_start||'''';


Thanks
Sam

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 3 Posts in Topic:
Update problem
sam.mahindrakar@[EMAIL PR  2008-06-03 15:00:10 
Re: Update problem
sam.mahindrakar@[EMAIL PR  2008-06-03 16:48:26 
Re: Update problem
sam.mahindrakar@[EMAIL PR  2008-06-03 16:53:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 21:28:36 CST 2008.