[perl5-dbi/dbi] c552ae: feature: Add option to disallow UPDATE to overwrit...

[email protected] ("H.Merijn Brand" via dbi-dev)
Newsgroups perl.dbi.dev
Message-ID <perl5-dbi/dbi/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/perl5-dbi/dbi
  Commit: c552aed24ab36c979d85afc41057c3905e7975cb
      https://github.com/perl5-dbi/dbi/commit/c552aed24ab36c979d85afc41057c3905e7975cb
  Author: Robert Rothenberg <[email protected]>
  Date:   2026-08-15 (Sat, 15 Aug 2026)

  Changed paths:
    M ChangeLog
    M lib/DBD/DBM.pm
    M lib/DBI/Changes.pm
    M t/50dbm_simple.t

  Log Message:
  -----------
  feature: Add option to disallow UPDATE to overwrite an existing primary-key row

This adds a dbm_updatable_key attribute, with the following values:
  - 0 = no change, default behavior as is
  - 1 = warn on duplicate key but continue as usual
  - 2 = croak on duplicate key


  Commit: d1d53465dbc3c2cc90dc15aaf88202dd5912fc49
      https://github.com/perl5-dbi/dbi/commit/d1d53465dbc3c2cc90dc15aaf88202dd5912fc49
  Author: Robert Rothenberg <[email protected]>
  Date:   2026-08-15 (Sat, 15 Aug 2026)

  Changed paths:
    M ChangeLog
    M lib/DBI/Changes.pm
    M lib/DBI/DBD/SqlEngine.pm

  Log Message:
  -----------
  fix: add missing import of refaddr to DBI::DBD::SqlEngine

Debugging DBD::DBM for the dbm_updatable_key tests triggered an error
about a missing refaddr method.


  Commit: e895efbde5f9537692f680c577884cce80662bd9
      https://github.com/perl5-dbi/dbi/commit/e895efbde5f9537692f680c577884cce80662bd9
  Author: H.Merijn Brand <[email protected]>
  Date:   2026-08-15 (Sat, 15 Aug 2026)

  Changed paths:
    M ChangeLog
    M lib/DBD/DBM.pm
    M lib/DBI/Changes.pm
    M lib/DBI/DBD/SqlEngine.pm
    M t/50dbm_simple.t

  Log Message:
  -----------
  Merge pull request #187 from perl5-dbi/rrwo/updatable_key-config

Add option to disallow UPDATE to overwrite an existingprimary  key row


Compare: https://github.com/perl5-dbi/dbi/compare/317625e07623...e895efbde5f9

To unsubscribe from these emails, change your notification settings at https://github.com/perl5-dbi/dbi/settings/notifications
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.