GDBC_Open deprecated – HELP!

Homepage Clovertech Forums Read Only Archives Cloverleaf Tcl Library GDBC_Open deprecated – HELP!

  • Creator
    Topic
  • #52645
    Jerry Tilsley
    Participant

    All,

    I have an xltp script that use to pull data from a gnu_database, but I have found that it is no longer doing so because the gdbm_open command is deprecated and I am told to use clsqlite_open instead.  Unfortunately I cannot get this to work, anyone have any scripts that open a gdbm database with the clsqlite_open command?

    Thanks,

    Jerry

Viewing 4 reply threads
  • Author
    Replies
    • #74972
      Rob Abbott
      Keymaster

      Jerry,

      You will need to migrate the database to sqlite and use the clsqlite_* commands in place of the gdbm_* commands.

      There is an automated way to do this and it is described in detail in the 5.8.1.0 (and above) release notes.  Look for the section titled Migrating a gdbm file to the sqlite database

      Rob Abbott
      Cloverleaf Emeritus

    • #74973
      Jerry Tilsley
      Participant

      Thanks Rob!

    • #74974
      Jerry Tilsley
      Participant

      Rob,

      It appears I cannot run that command because the GDBM library is greater than the version it uses.  Any other suggestions?

    • #74975
      Jeff Dinsmore
      Participant

      Can you run the gdbm commands directly from the hcitcl shell?

      I have never used gdbm, but it looks fairly simple – and I’m very familiar with Sqlite.

      I’d be willing to take  a swing at converting your gdbm database if you’d like to send it to me – assuming it’s not too large and doesn’t contain patient data…

      Jeff Dinsmore
      Chesapeake Regional Healthcare

    • #74976
      Kevin Crist
      Participant

      Sorry to bring up an older thread but i am in process of testing 6.0.1. Our current CL is 5.4.1. I am getting “orders500_xlatetpsGnuDbStore gdbm_open failed: The db may already be open in exclusive write mode!” errors.

      Do i have to switch to the sqlite? We will no longer have a need for these databases in the future and was hoping to just keep them as is.

      thank you.

Viewing 4 reply threads
  • The forum ‘Tcl Library’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,448
Topic Tags
288
Empty Topic Tags
10