]> Sergey Matveev's repositories - public-inbox.git/commit
lei_mail_sync: explicit bind for old SQL_VARCHAR compat
authorEric Wong <e@80x24.org>
Mon, 18 Apr 2022 09:44:01 +0000 (09:44 +0000)
committerEric Wong <e@80x24.org>
Mon, 18 Apr 2022 21:32:01 +0000 (21:32 +0000)
commit9f4279438bec8d0b52c8afc513142cc9d21ad8b8
treee9573504781d85aacc7e1f295cad6e0d2cf7d37b
parent961690bae47c90a4a6960952587c6f4463fb4b19
lei_mail_sync: explicit bind for old SQL_VARCHAR compat

This avoids repeated work for incremental "lei import" runs when
users upgrade from 1.7 to current public-inbox.git (and eventually
1.8).

We need the explicit bind_param for fallback calls because
previous bind_param calls are "sticky" for a given statement
handle.  The DBI(3pm) manpage states:

  The data type is 'sticky' in that bind values passed to execute()
  are bound with the data type specified by earlier bind_param()
  calls, if any.  Portable applications should not rely on being
  able to change the data type after the first "bind_param" call.
lib/PublicInbox/LeiMailSync.pm