think-orm断线重连 bug重现代码 求官方解决

浏览:721 发布日期:2018/03/27 分类:ThinkPHP5专区 关键字: orm
//  CREATE TABLE `bdtop` (
//      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
//      `title` varchar(255) NOT NULL,
//      `create_time` int(11) NOT NULL,
//      PRIMARY KEY (`id`)
//  ) ENGINE=MyISAM AUTO_INCREMENT=679 DEFAULT CHARSET=utf8;

use think\Db;

define("ROOT_DIR",__DIR__);

require ROOT_DIR."/vendor/autoload.php";

$db_conf = require __DIR__ . "/src/conf/database.php";
Db::setConfig($db_conf);


$s = Db::name("bdtop")->insert([
    "title"=>"test1",
    "create_time"=>11111,
]);
var_dump($s);

sleep(6);

$s = Db::name("bdtop")->insert([
    "title"=>"test2",
    "create_time"=>22222,
]);
var_dump($s);
最佳答案
评论( 相关
后面还有条评论,点击查看>>