vasa-c / godb-old Goto Github PK
View Code? Open in Web Editor NEWgoDB v.1.x
Home Page: http://pyha.loc/go/godb/
goDB v.1.x
Home Page: http://pyha.loc/go/godb/
Знаю, что делается новая библиотека с различными мульками, но эта очень компактная и удобная, думаю ей многие еще долго будут с удовольствием пользоваться.
Но есть одно но, при генерации исключений или при выводе отладки неизвестно какой скрипт на какой строке выдал этот SQL запрос.
Есть предложение это дело малец модифицировать, чтобы было понятно где искать ту самую ошибку или при отладке было понятно где найти тот самый запрос.
Error Code(0): It is too much data in D:\www\xxx\htdocs\system\database\godb.php on line 573 - мало что говорит разработчику.
а вот сообщение вида:
It is too much data (SELECT order_number
FROM ?t WHERE order_number
= ?), file:D:\www\xxx\htdocs\application\model\bank\order.php, line:211 - намного удобнее!
Спасибо!
Нужно поправить переопределение mysqli::commit() и mysqli::rollback
иначе в новых версиях будет Strict Standards.
/**
* Переопределение mysqli::commit()
*
* @link http://ru.php.net/manual/en/mysqli.commit.php
* @link http://pyha.ru/go/godb/transaction/
*
* @return bool
*/
public function commit($flags = NULL, $name = NULL) {
if (!$this->inTransaction()) {
return parent::commit();
}
return true;
}
/**
* Переопределение mysqli::commit()
*
* @link http://ru.php.net/manual/en/mysqli.rollback.php
* @link http://pyha.ru/go/godb/transaction/
*
* @return bool
*/
public function rollback($flags = NULL, $name = NULL) {
if (!$this->inTransaction()) {
return parent::rollback();
}
$this->transactionLevel++;
return $this->transactionRollback();
}
А что произошло с документаций по старой версии?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.