| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fixed memory leaks | Ilia Alshanetsky | 2005-12-01 | 1 | -1/+1 |
| | | |||||
| * | Fixed memory leak | Ilia Alshanetsky | 2005-11-30 | 1 | -1/+1 |
| | | |||||
| * | Fixed compiler warnings | Ilia Alshanetsky | 2005-11-29 | 1 | -3/+1 |
| | | |||||
| * | proto fixups | Wez Furlong | 2005-11-29 | 1 | -14/+21 |
| | | |||||
| * | Added PDO::pgsqlLOBCreate(), PDO::pgsqlLOBOpen() and PDO::pgsqlLOBUnlink(). | Wez Furlong | 2005-11-29 | 1 | -3/+198 |
| | | |||||
| * | Addresses #35338. | Wez Furlong | 2005-11-25 | 1 | -34/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | Postgres client API is pretty poor, so we have zero idea about the actual parameter types in a statement. We now defer the preparation of a statement until the first call to execute is made. At that point, we have the parameters defined by the calling script, so we can use the typing specified there when we perform the prepare. For PDO_PARAM_LOB parameters, we set the binary formatting flag. We can't just set this flag for all parameters, because its meaning is not "string data, counted length" but "data is in native format". If this flag is set for a numeric column and we send the number 1 formatted as a string, then we will get an "insufficient data left in message" error message, because the library was expecting sizeof(int4) bytes but only saw 1 byte for "1". This is infuriating because we have no way to determine the datatypes for parameters, and the type we explicitly set has to match the type in the database. The only choice we're left with is telling postgres to deduce the type; we still have no idea what type was deduced. | ||||
| * | - Bumber up year | foobar | 2005-08-03 | 1 | -1/+1 |
| | | |||||
| * | Add PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT attribute, which, when set | Wez Furlong | 2005-07-20 | 1 | -46/+49 |
| | | | | | | | | | | | | | | | | | to true, forces the driver to use PDO's own emulated prepared statement support. Why would you want that, considering that native prepared statements are supposed to be the best thing ever? "Often postgresql will have to plan the query without knowing the parameters - and it will choose a bad plan. In some cases it will plan based on the first parameters you send. " Ugh. So now we have a way to let you decide that you know better than the pgsql query planner. | ||||
| * | Added cursor closer handler. | Ilia Alshanetsky | 2005-07-09 | 1 | -0/+2 |
| | | | | | | Fixed memory leak. | ||||
| * | Add early support for native prepared statements in pgsql. | Wez Furlong | 2005-07-08 | 1 | -1/+59 |
| | | | | | | | Note that some tests now fail; if we can't resolve this in time for the beta, the prepare code should be disabled (I'll add a flag for this later today). | ||||
| * | Use PQexecParams() when available, use original case in all other instances. | Ilia Alshanetsky | 2005-07-07 | 1 | -3/+13 |
| | | |||||
| * | Leave it up to the user to decide if to escape the sequence name or not. | Ilia Alshanetsky | 2005-07-07 | 1 | -5/+0 |
| | | |||||
| * | Faster sequence id retrieval. | Ilia Alshanetsky | 2005-07-07 | 1 | -6/+7 |
| | | |||||
| * | Only check for InvalidOid when not looking up a sequence | Edin Kadribasic | 2005-07-01 | 1 | -4/+3 |
| | | |||||
| * | Fold PQresultErrorField() into a macro | Edin Kadribasic | 2005-07-01 | 1 | -12/+2 |
| | | |||||
| * | Added support for fetching current value of a sequence when the | Edin Kadribasic | 2005-07-01 | 1 | -3/+32 |
| | | | | | | optional sequence name has been passed to PDO::lastInsertId() | ||||
| * | Silence warnings. | Ilia Alshanetsky | 2005-06-30 | 1 | -1/+1 |
| | | |||||
| * | Make exec() return FALSE on error as do other drivers. | Ilia Alshanetsky | 2005-06-28 | 1 | -2/+2 |
| | | |||||
| * | Fixed double-free bug. | Ilia Alshanetsky | 2005-06-28 | 1 | -1/+0 |
| | | |||||
| * | fixed oid retrieval. | Ilia Alshanetsky | 2005-06-28 | 1 | -1/+1 |
| | | |||||
| * | Various compiler warning fixes. | Ilia Alshanetsky | 2005-05-18 | 1 | -1/+1 |
| | | |||||
| * | patch by Christopher Kings-Lynne, slightly modified | Wez Furlong | 2005-05-13 | 1 | -8/+15 |
| | | |||||
| * | Alan: moved your fields away, but reserved you a pointer. | Wez Furlong | 2005-02-26 | 1 | -3/+7 |
| | | | | | | | | | | | | | | Changed PDO::lastInsertId() to have following proto: string PDO::lastInsertId([string name]) this allows arbitrary unique identitifers to be returned from the driver. The optional name parameter is for databases that require additional contextual information to be able to return the correct identifier. None currently use it, but pgsql will be on the list of drivers that do. | ||||
| * | - Shutup notices | Marcus Boerger | 2005-02-20 | 1 | -0/+8 |
| | | |||||
| * | Simplify code and fix compiler warning. | Ilia Alshanetsky | 2005-02-12 | 1 | -5/+2 |
| | | |||||
| * | Finalized pgsql LOB support using native pgsql bytea type. | Edin Kadribasic | 2005-02-06 | 1 | -6/+22 |
| | | | | | | | | | If paramater is bound with type PDO_PARAM_LOB the quoter function gets a hint that specific LOB type quoting should be used: $stmt->bindParam(":lob", $lob, PDO_PARAM_LOB); | ||||
| * | Decode pgsql LOB objects (bytea type) on fetch | Edin Kadribasic | 2005-02-05 | 1 | -1/+1 |
| | | |||||
| * | Use the created connection string. | Ilia Alshanetsky | 2005-02-03 | 1 | -1/+1 |
| | | |||||
| * | Add support for fetching meta data | Edin Kadribasic | 2005-01-23 | 1 | -2/+3 |
| | | |||||
| * | Eliminate unused parameter. | Wez Furlong | 2005-01-21 | 1 | -8/+1 |
| | | | | | | | Don't start a transaction when asking for a cursor with pgsql. Fix parameter binding for sqlite3 | ||||
| * | Allow drivers to select bind emulation on a per statement basis | Wez Furlong | 2005-01-18 | 1 | -1/+1 |
| | | |||||
| * | Use PQescapeBytea() for quoting. Need to think how to add binary safe | Edin Kadribasic | 2005-01-17 | 1 | -11/+5 |
| | | | | | | | quoting for blobls (pgsql bytea type). Fixes #2818 | ||||
| * | Take a blind stab at implementing scrollable cursors for pgsql. | Wez Furlong | 2005-01-13 | 1 | -2/+20 |
| | | | | | | | | | | | | | | | | | | | | | We allocate a unique cursor name for each statement, so that we don't interfere with other open statement handles on the same dbh. Note, however, that we force a new transaction for each open scrollable cursor (postgres requires cursors to be used inside a transaction). This is okay, except for the case where a scrollable cursor is opened, an update is made and the cursor is closed; closing the cursor commits the transaction that was begun when it was opened. It might well be better to avoid the transaction in PDO and force the user to be aware of the requirements of cursors and explicitly initiate the transaction themselves. This is all untested code; it compiles and looks like it will work, but I encourage someone with a real postgres setup to actually sit down and try to use it. | ||||
| * | lame implementation of SQLSTATE error codes | Wez Furlong | 2005-01-07 | 1 | -8/+4 |
| | | |||||
| * | Make handle error messages handle persistent situations better. | Ilia Alshanetsky | 2004-09-23 | 1 | -5/+10 |
| | | |||||
| * | more method table adjustments. | Wez Furlong | 2004-09-23 | 1 | -1/+2 |
| | | | | | | | mysql driver needs work with the error message stuff. Other drivers need a bit more auditing... | ||||
| * | Proper parameter separators for PostgreSQL connection initialization. | Ilia Alshanetsky | 2004-07-29 | 1 | -4/+13 |
| | | |||||
| * | - Trim error messages | Marcus Boerger | 2004-07-28 | 1 | -1/+15 |
| | | |||||
| * | - Fix shutdown problems | Marcus Boerger | 2004-07-28 | 1 | -1/+7 |
| | | |||||
| * | equivalent segv/shutdown fix for failed connect | Wez Furlong | 2004-07-28 | 1 | -0/+1 |
| | | |||||
| * | Allow pgsql driver to accept login & password as separate parameters like | Ilia Alshanetsky | 2004-07-20 | 1 | -1/+17 |
| | | | | | | other PDO drivers can. | ||||
| * | PQfreemem() is only available in 7.4 | Edin Kadribasic | 2004-05-26 | 1 | -1/+1 |
| | | |||||
| * | Whitespace: editor in the wrong mode ;) | Edin Kadribasic | 2004-05-25 | 1 | -4/+4 |
| | | |||||
| * | Add transaction support | Edin Kadribasic | 2004-05-25 | 1 | -3/+33 |
| | | |||||
| * | Use binary safe function for quoting | Edin Kadribasic | 2004-05-25 | 1 | -5/+11 |
| | | |||||
| * | Fixed memory leak. | Ilia Alshanetsky | 2004-05-25 | 1 | -8/+11 |
| | | |||||
| * | Update for placeholder flags | Wez Furlong | 2004-05-21 | 1 | -3/+1 |
| | | |||||
| * | Kill unused var. | Ilia Alshanetsky | 2004-05-20 | 1 | -1/+0 |
| | | |||||
| * | Fix build on win32 | Wez Furlong | 2004-05-20 | 1 | -2/+2 |
| | | |||||
| * | Fixed parameter order. | Ilia Alshanetsky | 2004-05-20 | 1 | -2/+2 |
| | | |||||
