Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

by Unlicensed Unknown user

Any “conversion,” re-factoring, of an application, as in moving to SQL from flat files, will pose issues. The odds of getting a clean compile the first or second time (or third, fourth …), much less a correctly functioning app out of the box are … not especially good.

...

Figure 1: SQLite Database Browser

Image RemovedImage Added

But, be aware, it can lock up on a badly formatted query.

...

Figure 2: Get(Accounts,ACC:AccountKey)

Image RemovedImage Added

Except that the record was not being found!

...

Figure 3: Account file layout (DCT)

Image RemovedImage Added

What is going on here?

...

Figure 4: Adjusted ACCOUNTS file layout

Image RemovedImage Added

Figure 5: Old and New Layouts Compare

Image RemovedImage Added

I've never before heard of such a requirement (though, from a recent news group posting by Geoff Bomford, MS-SQL may well share this peculiarity). But, problem solved.  [Expletive deleted – some more]

...

Figure 6: Saving a Change (APP)

Image RemovedImage Added

Trying to delete a record from the ACCOUNTS file gave similar results:

Figure 7: Deleting an Account (APP)

Image RemovedImage Added

I can't add, update or delete CHECKS. I can't delete ACCOUNTS. Two other files in the app show no problems of any kind for any CRUD operation.

...

Figure 8: Deleting from the Wizarded app

Image RemovedImage Added

though, instead of an ErrorCode 33, now I get a 35. [Expletive deleted – much more]

...

Figure 9: CHECKS file layout (DCT)

Image RemovedImage Added

Moving the fields around, to group the other unique key elements together and toward the top:

Figure 10: New CHECKS File Layout

Image RemovedImage Added

Figure 11: Old and New Layouts Compared

Image RemovedImage Added

Records could now be added, updated or deleted. And, from the previous … adventure … the balances updated and displayed. Correctly, no less!

...

Figure 12: SQLite Date Formatting

Image RemovedImage Added

reveals the answer. Where MySQL and MS-SQL store Date data types in D12 format (or, at least, understand D12 format), SQLite has its own unique date format: yyyy-mm-dd. Checking the Clarion docs, this looks like it could be D12-.

...

Figure 13: Repeating Records at Browse Bottom

Image RemovedImage Added

(For a short while, I recall this also occurred when scrolling up from the top of the browse.)

...