Can anybody help me?
I’v got the function (method) that was written before me. I have to use
this method. I think that I can’t understand several primitive things,
but I (may be) don’t know about these things.
When this function can (may) returns nil?
I’v got incidents when I know that this function must returns me a
record from Oracle. But I receive return value = nil. Why? Reasons?
The text of ruby method is below…
find cm_batch_id by given invoice number, shipments_status_id,
sql_statement = <<-END_OF_SQL
FROM CM_SHIPMENTS sp
AND EXISTS (SELECT 1 FROM CM_BATCHES bh
WHERE sp.cm_batch_id = bh.id
P.S. Execuse me my bad English I’m from Russia