News Feed
Jobs Feed
Sections




News Archive
feed this:

Chris Hartjes' Blog:
The Devil's In The Details (or, Handling Sequences in Postgres in CakePHP)
February 04, 2008 @ 08:47:00

Chris Hartjes has shared his experiences in dealing with the combination of Postgres and CakePHP and convincing it to work with sequences in your tables.

I had been struggling with some weirdness that CakePHP has been displaying while trying to add some new features to the baseball league website, where Cake + PHP 4.4 + Postgres were deciding to just be sulky and not work together well.

Lucky for me, it turns out that the solution (for now) to the problem was to simply add the name of the sequence for that table as a variable to the model definition.

He includes the code for the Model that creates the connections between hos tables (belongsTo) and creates a sequence global to the class - note the naming convention.

0 comments voice your opinion now!
sequence postgres database cakephp framework example


PHPBuilder.com:
A Primer On Postgres Exception Handling For The PHP Developer, Part 2
November 16, 2007 @ 09:35:00

PHPBuilder.com has posted part two of a series they're working through introducing PHP developers to the world of exception handling in the Postgres database.

Last week we left off with an example where notice, exception and log levels are sent to the client. This week we present more POSTGRES exception examples, and continue with our article on Postgres exception handling.

They create a few examples:

  • handling other error conditions with OTHERS
  • using f_ex2
  • returning NO_DATA_FOUND and TOO_MANY_ROWS
  • handling exceptions like table constraints
  • nested exceptions
  • using f_ex5
  • a RAISE EXCEPTION dilemma
  • using f_ext1
0 comments voice your opinion now!
postgres exception handling developer primer postgres exception handling developer primer


PHPBuilder:
A Primer On Postgres Exception Handling For The PHP Developer
November 07, 2007 @ 06:01:00

On PHPBuilder, Robert Bernier has started writing a series of articles on Postgres exception handling. In this one, covers the basics of exception handling for PHP developers.
Postgres exceptions are quite different from PHP exceptions; whereas PHP 5 uses the traditional "Try And Catch" format, Postgres exceptions can only be defined, executed and processed inside the body of the function that triggered the exception.
Also in the article he covers RAISE statements, how Postgres handles them, and gives good practices on how to use them effectively as a method of troubleshooting errors.
0 comments voice your opinion now!
postgres exception handling trycatch raise postgres exception handling trycatch raise


Community News:
phpPgAmin 4.1 Released
January 22, 2007 @ 10:41:00

The phpPgAdmin development team is happy to announce the release of the latest version of their software - phpPgAdmin 4.1.

The phpPgAdmin Team is proud to announce a new major release of phpPgAdmin. Version 4.1 adds many new features, bug fixes and updated translations over the previous version.

Updates include:

  • New icons by Niko , from the graphics repository on pgFoundry
  • Send encrypted passwords over the wire wherever possible
  • Display Prepared Transactions
  • Add Support For IN/OUT Parameters
and many more. Check out this posting for a more complete listing or just head straight to the download page to grab the update.

0 comments voice your opinion now!
phppgadmin postgres release version features phppgadmin postgres release version features



Community Events











Don't see your event here?
Let us know!


opinion code conference language unittest release framework zendframework2 example object series podcast community tool composer development introduction testing functional interview

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework