Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 263 Vote(s) - 3.49 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"ORA-00903: invalid table name" from JScript, works good from Toad

#1
I have a query to update state_id for one row in a table:

UPDATE EVENTS
SET final_name = 'bla-bla-bla',
transaction_Date =
TO_DATE ('2014-09-08T03:29:57', 'YYYY-MM-DD"T"hh24:mi:ss'),
state_id = '90'
WHERE ROWNUM <= 1
AND state_id = '2'
AND ufm_id IS NOT NULL
AND violation_event_id IS NOT NULL
AND violation_Event_type_id = '1';

When I am executing this query from Toad everything works like a charm (with commit or without).
When I generate exactly, double checked, the same query from JScript (in SmartBear TestComplete) I am getting an error:
ORA-00903: invalid table name.
I copy generated query from debug output, paste it to Toad - works well.

Found the mistake: RTFM - I cannot update by "`UPDATE..`." query execution, in adodb I need to read recordset by "`SELECT..`.", assign new values and execute recordset.update.
[Recordset examples][1]


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through