Disable prepared statements completely

[?]
Mar 12, 2012, 6:42 PM
NS5GKQHW26OSSNT722GGKKMIQLTS7UKSWG2CUSV5QYBUF3A24I7AC

Dependencies

  • [2] LGNML7VJ Don't use a prepared statement for the active build steps query
  • [3] SHBLLAVH * More global substitution.
  • [4] AFTXA575 * $HYDRA_DATA environment variable.
  • [5] J5UVLXOK * Start of a basic Catalyst web interface.
  • [6] 6FRLEP4P first try for timeline of last 24 hours in hydra
  • [7] EFWN7JBV * Added a status page that shows all the currently executing build steps.

Change contents

  • replacement in src/lib/Hydra/Controller/Root.pm at line 98
    [3.424][2.0:362]()
    $c->model('DB')->storage->dbh_do(sub {
    my (undef, $dbh) = @_;
    local $dbh->{pg_server_prepare} = 0;
    $c->stash->{steps} = [ $c->model('DB::BuildSteps')->search(
    { 'me.busy' => 1, 'build.finished' => 0, 'build.busy' => 1 },
    { join => [ 'build' ]
    , order_by => [ 'machine' ]
    } ) ];
    });
    [3.424]
    [3.646]
    $c->stash->{steps} = [ $c->model('DB::BuildSteps')->search(
    { 'me.busy' => 1, 'build.finished' => 0, 'build.busy' => 1 },
    { join => [ 'build' ]
    , order_by => [ 'machine' ]
    } ) ];
  • replacement in src/lib/Hydra/Model/DB.pm at line 9
    [3.397][3.879:917]()
    connect_info => [getHydraDBPath],
    [3.397]
    [3.2927]
    connect_info => {
    dsn => getHydraDBPath,
    pg_server_prepare => 0,
    },