Fuel\Core\Database_Exception [ 22001 ]:
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'word' at row 1 with query: "INSERT INTO `mobile_word` (`word`, `count`, `date`) VALUES ('%E7%AB%B6%E6%B3%B3%E6%B0%B4%E7%9D%80', 1, '2024-03-28 19:15:29')"
248 { 249 $error_code = 0; 250 } 251 } 252 253 throw new \Database_Exception($e->getMessage().' with query: "'.$sql.'"', $error_code, $e); 254 } 255 } 256 257 // no more attempts left, bail out 258 else
309 catch (\CacheNotFoundException $e) {} 310 } 311 312 // Execute the query 313 \DB::$query_count++; 314 $result = $db->query($this->_type, $sql, $this->_as_object); 315 316 // Cache the result if needed 317 if (isset($cache) and ($this->_cache_all or $result->count())) 318 { 319 $cache->set_expiration($this->_lifetime)->set_contents($result->as_array())->set();
563 564 $query = \DB::insert(static::$_table_name) 565 ->set($vars); 566 567 $this->pre_save($query); 568 $result = $query->execute(static::get_connection(true)); 569 570 if ($result[1] > 0) 571 { 572 // workaround for PDO connections not returning the insert_id 573 if ($result[0] === false and isset($vars[static::primary_key()]))
31 array("word" => $word, 32 "count" => 1, 33 "date" => date('Y-m-d H:i:s') 34 ) 35 ); 36 $o->save(); 37 } 38 39 $count = Model_Gravurefeed::count(); 40 $ids = DB::select("id")->from('gravure_feed') 41 ->where_open()
449 // fire any controller started events 450 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 451 452 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 453 454 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 455 456 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 457 458 // fire any controller finished events 459 \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished', '', 'none');
66 $response = Response::forge($response); 67 } 68 } 69 elseif ($e === false) 70 { 71 $response = Request::forge()->execute()->response(); 72 } 73 elseif ($route) 74 { 75 $response = Request::forge($route, false)->execute(array($e))->response(); 76 }
87{ 88 // Boot the app... 89 require APPPATH.'bootstrap.php'; 90 91 // ... and execute the main request 92 $response = $routerequest(); 93} 94catch (HttpBadRequestException $e) 95{ 96 $response = $routerequest('_400_', $e); 97}