Code Monkey home page Code Monkey logo

akrabatzf's Introduction

Hi there ๐Ÿ‘‹

I'm a software consultant and developer concentrating on web APIs and applications.

Drop me an email at [email protected] if you think I could help with your project.

akrabatzf's People

Contributors

akrabat avatar dstockto avatar justmatt avatar meonkeys avatar samhennessy avatar zircote avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

akrabatzf's Issues

update-to not working as it should

Hello,

Check this out:

[renich@introdeskg02org default]$ zf update database-schema
Schema updated to version 2

[renich@introdeskg02org default]$ zf update-to database-schema version=1
Schema updated to version 0

[renich@introdeskg02org default]$ zf current database-schema
Current schema version is 0

[renich@introdeskg02org default]$ zf update database-schema
Schema updated to version 2

[renich@introdeskg02org default]$ zf current database-schema
Current schema version is 2

So, it's kind of malfunctioning. I'd like to know how to debug it. No errors on /var/log/php-fpm/www-error.log

2. Message: SQLSTATE[IMSSP]: An invalid keyword 'params' was specified in the DSN string.

hello, your code help me a lot. But in case I defined the following parameters in application.ini, some error will produce.

resources.multidb.pos.params.profiler.enabled = true
resources.multidb.pos.params.profiler.class = "Zend_Db_Profiler_Firebug"

Message: SQLSTATE[IMSSP]: An invalid keyword 'params' was specified in the DSN string.

to solve this problem, pls put "unset($dsn['params']); " inside _dsn(), then the problem should be solved. Hope this help the others.

by the way, does anyone know why zend did not include this file officially???

Format Default Values in Akrabat_Db_Adapter_Pdo_Sqlsrv

MSSQL returns default values with formatting, eg. a boolean true or false is returned as ((0)) or ((1)). This was causing me problems when trying to fill default values in a Zend_Form.

I have created a patch to return the actual values. First this addition on line 298:

'DEFAULT' => $this->_formatDefaultValue( $row[$column_def] ),

and later a new method:

protected function _formatDefaultValue( $value )
{
    if( empty( $value ) )
    {
        return;
    }

    // take default minus first & last characters
    $value = substr( $value, 1, strlen( $value ) - 2 );

    // remove starting & ending apostrophes
    if( $value{ 0 } == "'" && $value{ strlen( $value ) - 1 } == "'" )
    {
        $value = substr( $value, 1, strlen( $value ) - 2 );
    }

    // remove starting and ending brackets (1 and 0 have double brackets)
    if( strlen( $value ) > 2 && $value{ 0 } == '(' && $value{ strlen( $value ) - 1 } == ')' )
    {
        $value = substr( $value, 1, strlen( $value ) - 2 );
    }

    return $value;
}

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.