Firebird: a stored procedure called through PROP:SQL does not save its changes

Applies to: Firebird through the ODBC driver (Clarion 8 era); the rule applies to any backend whose connection does not auto-commit.

Problem

Table{PROP:SQL} = 'NORESULTCALL UpdateProductPrice(&Pct[IN])' runs without error, the same call from the admin tool updates the prices, but from the application nothing is saved.

Solution

Follow the call with a commit on the same connection: Table{PROP:SQL} = 'COMMIT', or wrap the call in LOGOUT / COMMIT. With Firebird's default configuration the ODBC connection runs in a transaction that is not committed for you, so the procedure's updates stay invisible and are rolled back when the connection closes.

Caveats

Check ERRORCODE() and FILEERROR() after both statements; a silent success on the call and a failed COMMIT look the same from the user's side.

Today (2026)

Unchanged for Firebird; on backends that auto-commit (SQL Server by default) the extra COMMIT is harmless.

Sources: Steven M. (Dec 2012, the question and the fix), Pratik (Dec 2012) in softvelocity.clarion.databasedrivers.