Git Product home page Git Product logo

godb-old's People

Contributors

ange007 avatar vasa-c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

godb-old's Issues

Есть предложения немного эту библиотеку модифицировать.

Знаю, что делается новая библиотека с различными мульками, но эта очень компактная и удобная, думаю ей многие еще долго будут с удовольствием пользоваться.
Но есть одно но, при генерации исключений или при выводе отладки неизвестно какой скрипт на какой строке выдал этот 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

Нужно поправить переопределение 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();
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.