ãã¨ãå æ¥ãªãªã¼ã¹ããDBD::SQLite 1.30_02ã®å¤æ´ç¹ã«ã¤ãã¦ã DBD::SQLiteã¯ããã¾ã§ DBIãç¨æããæ çµã¿ã®ç¯å²å ã§ã®ãã©ã³ã¶ã¯ã·ã§ã³ãå©ç¨ãã¦ãã(AutoCommit/begin_work) fork()ãªã©ãå©ç¨ãã¦ä¸¦åæ§ãé«ãã¦ãã èªã¿æ¸ããå¹³è¡ãã¦è¡ã£ã¦ãã ã¨ãã£ãæ¡ä»¶ãéãªã£ãã¨ãã«ãã©ã³ã¶ã¯ã·ã§ã³ããããããã¯ãããã¨ããããã¨ããåé¡ãæ±ãã¦ãã¾ãããæå°éã®åç¾ã³ã¼ãã¯ãããªæãã«ãªãã¾ãã use strict; use warnings; use DBI; my $pid = fork(); if ($pid) { do_transaction(); } else { sleep 1; do_transaction(); exit; } unlink 'test.db'; sub do_transaction { my $dbh =
{{#tags}}- {{label}}
{{/tags}}