PostgreSQL over ODBC: "record was changed by another station" only on rows converted from TPS (add LFConversion=0)

Applies to: Clarion 6 (build 9053 as written), PostgreSQL "v.83" as written, ODBC with a direct connection string (no DSN), data converted from TPS with File Manager 3 (version 4.46 as written). 2009 thread.

Problem

After converting legacy TPS data to PostgreSQL, updating the converted rows gave "record was changed by another station". Newly inserted rows were fine, and so were converted rows edited after a new insert elsewhere. Only rows that came across from TPS had the problem. Date and time were separate fields (not datetime), and client-side trigger code set the "lastupdated" fields on save.

Solution

  1. Add LFConversion=0 to the ODBC connection string. The poster wrote that this fixed his problem; the hint came from CapeSoft. He described it as handling the LF / CRLF conversion between Unix and Windows.

Diagnostics other posters offered before the fix was found:

  • Check the default values; there could be NULLs somewhere.
  • Turn Clarion tracing on with "Show record buffer contents", change one legacy row, and find the UPDATE ... WHERE x = ? AND y = ? statement in the trace. One of the values Clarion sends is not what is in the row. The same statement can be found with tracing on the PostgreSQL side.

Caveats

  • The poster's short report is the only evidence the setting fixed it; he gave no detail of which fields held line breaks.
  • The thread does not say whether text fields were the cause. Date, time and NULL differences were the other suspects, and the poster did not say they were ruled out.
  • A related entry with a text box and a last CR/LF is FAQ-442.

Today (2026)

The advice is probably still worth trying for this symptom (converted rows only, text with line breaks); not re-tested on current builds.

Sources: Trevor (Jul 2009, the question and the fix), Peter H. (Jul 2009), Jon W. (Jul 2009) in softvelocity.clarion.databasedrivers.