cvs: pear /MDB2/MDB2/Driver fbsql.php ibase.php mssql.php mysql.php mysqli.php oci8.php pgsql.php querysim.php sqlite.php

From: Date: Fri, 10 Jun 2005 16:00:34 +0000
Subject: cvs: pear /MDB2/MDB2/Driver fbsql.php ibase.php mssql.php mysql.php mysqli.php oci8.php pgsql.php querysim.php sqlite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32467@lists.php.net to get a copy of this message
dufuz Fri Jun 10 12:00:34 2005 EDT Modified files: /pear/MDB2/MDB2/Driver fbsql.php ibase.php mssql.php mysqli.php mysql.php oci8.php pgsql.php querysim.php sqlite.php Log: All these drivers support primary key (correct me if I'm wrong people)

http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/fbsql.php?r1=1.62&r2=1.63&ty=u Index: pear/MDB2/MDB2/Driver/fbsql.php diff -u pear/MDB2/MDB2/Driver/fbsql.php:1.62 pear/MDB2/MDB2/Driver/fbsql.php:1.63 --- pear/MDB2/MDB2/Driver/fbsql.php:1.62 Mon May 23 15:34:12 2005 +++ pear/MDB2/MDB2/Driver/fbsql.php Fri Jun 10 12:00:32 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: fbsql.php,v 1.62 2005/05/23 19:34:12 lsmith Exp $ +// $Id: fbsql.php,v 1.63 2005/06/10 16:00:32 dufuz Exp $ // /** @@ -86,6 +86,7 @@ $this->supported['replace'] = true; $this->supported['sub_selects'] = true; $this->supported['auto_increment'] = true; + $this->supported['primary_key'] = true; } // }}} http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/ibase.php?r1=1.95&r2=1.96&ty=u Index: pear/MDB2/MDB2/Driver/ibase.php diff -u pear/MDB2/MDB2/Driver/ibase.php:1.95 pear/MDB2/MDB2/Driver/ibase.php:1.96 --- pear/MDB2/MDB2/Driver/ibase.php:1.95 Mon Jun 6 05:29:29 2005 +++ pear/MDB2/MDB2/Driver/ibase.php Fri Jun 10 12:00:32 2005 @@ -43,7 +43,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.95 2005/06/06 09:29:29 lsmith Exp $ +// $Id: ibase.php,v 1.96 2005/06/10 16:00:32 dufuz Exp $ /** * MDB2 FireBird/InterBase driver @@ -88,6 +88,7 @@ $this->supported['replace'] = false; $this->supported['sub_selects'] = true; $this->supported['auto_increment'] = false; + $this->supported['primary_key'] = true; $this->options['database_path'] = ''; $this->options['database_extension'] = '.gdb'; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mssql.php?r1=1.70&r2=1.71&ty=u Index: pear/MDB2/MDB2/Driver/mssql.php diff -u pear/MDB2/MDB2/Driver/mssql.php:1.70 pear/MDB2/MDB2/Driver/mssql.php:1.71 --- pear/MDB2/MDB2/Driver/mssql.php:1.70 Fri Jun 10 09:10:21 2005 +++ pear/MDB2/MDB2/Driver/mssql.php Fri Jun 10 12:00:32 2005 @@ -43,7 +43,7 @@ // | Author: Frank M. Kromann <frank@kromann.info> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.70 2005/06/10 13:10:21 alexmerz Exp $ +// $Id: mssql.php,v 1.71 2005/06/10 16:00:32 dufuz Exp $ // /** @@ -83,6 +83,7 @@ $this->supported['replace'] = true; $this->supported['sub_selects'] = true; $this->supported['auto_increment'] = true; + $this->supported['primary_key'] = true; $this->options['database_device'] = false; $this->options['database_size'] = false; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mysqli.php?r1=1.25&r2=1.26&ty=u Index: pear/MDB2/MDB2/Driver/mysqli.php diff -u pear/MDB2/MDB2/Driver/mysqli.php:1.25 pear/MDB2/MDB2/Driver/mysqli.php:1.26 --- pear/MDB2/MDB2/Driver/mysqli.php:1.25 Mon Jun 6 05:36:47 2005 +++ pear/MDB2/MDB2/Driver/mysqli.php Fri Jun 10 12:00:32 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysqli.php,v 1.25 2005/06/06 09:36:47 lsmith Exp $ +// $Id: mysqli.php,v 1.26 2005/06/10 16:00:32 dufuz Exp $ // /** @@ -85,6 +85,7 @@ $this->supported['replace'] = true; $this->supported['sub_selects'] = false; $this->supported['auto_increment'] = true; + $this->supported['primary_key'] = true; $this->options['default_table_type'] = null; } http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mysql.php?r1=1.64&r2=1.65&ty=u Index: pear/MDB2/MDB2/Driver/mysql.php diff -u pear/MDB2/MDB2/Driver/mysql.php:1.64 pear/MDB2/MDB2/Driver/mysql.php:1.65 --- pear/MDB2/MDB2/Driver/mysql.php:1.64 Mon May 9 20:19:15 2005 +++ pear/MDB2/MDB2/Driver/mysql.php Fri Jun 10 12:00:32 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.64 2005/05/10 00:19:15 lsmith Exp $ +// $Id: mysql.php,v 1.65 2005/06/10 16:00:32 dufuz Exp $ // /** @@ -85,6 +85,7 @@ $this->supported['replace'] = true; $this->supported['sub_selects'] = false; $this->supported['auto_increment'] = true; + $this->supported['primary_key'] = true; $this->options['default_table_type'] = null; } @@ -167,7 +168,7 @@ */ function escape($text) { - return @mysql_escape_string($text); + return @mysql_real_escape_string($text); } // }}} http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/oci8.php?r1=1.77&r2=1.78&ty=u Index: pear/MDB2/MDB2/Driver/oci8.php diff -u pear/MDB2/MDB2/Driver/oci8.php:1.77 pear/MDB2/MDB2/Driver/oci8.php:1.78 --- pear/MDB2/MDB2/Driver/oci8.php:1.77 Mon Jun 6 05:49:07 2005 +++ pear/MDB2/MDB2/Driver/oci8.php Fri Jun 10 12:00:32 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.77 2005/06/06 09:49:07 lsmith Exp $ +// $Id: oci8.php,v 1.78 2005/06/10 16:00:32 dufuz Exp $ /** * MDB2 OCI8 driver @@ -84,6 +84,7 @@ $this->supported['replace'] = true; $this->supported['sub_selects'] = true; $this->supported['auto_increment'] = false; + $this->supported['primary_key'] = true; $this->options['DBA_username'] = false; $this->options['DBA_password'] = false; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/pgsql.php?r1=1.64&r2=1.65&ty=u Index: pear/MDB2/MDB2/Driver/pgsql.php diff -u pear/MDB2/MDB2/Driver/pgsql.php:1.64 pear/MDB2/MDB2/Driver/pgsql.php:1.65 --- pear/MDB2/MDB2/Driver/pgsql.php:1.64 Mon Apr 25 09:09:03 2005 +++ pear/MDB2/MDB2/Driver/pgsql.php Fri Jun 10 12:00:33 2005 @@ -43,7 +43,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.64 2005/04/25 13:09:03 lsmith Exp $ +// $Id: pgsql.php,v 1.65 2005/06/10 16:00:33 dufuz Exp $ /** * MDB2 PostGreSQL driver @@ -82,6 +82,7 @@ $this->supported['replace'] = true; $this->supported['sub_selects'] = true; $this->supported['auto_increment'] = false; + $this->supported['primary_key'] = true; } // }}} http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/querysim.php?r1=1.36&r2=1.37&ty=u Index: pear/MDB2/MDB2/Driver/querysim.php diff -u pear/MDB2/MDB2/Driver/querysim.php:1.36 pear/MDB2/MDB2/Driver/querysim.php:1.37 --- pear/MDB2/MDB2/Driver/querysim.php:1.36 Mon Apr 25 09:09:04 2005 +++ pear/MDB2/MDB2/Driver/querysim.php Fri Jun 10 12:00:33 2005 @@ -61,7 +61,7 @@ // | please contact Alan Richmond. | // +----------------------------------------------------------------------+ // -// $Id: querysim.php,v 1.36 2005/04/25 13:09:04 lsmith Exp $ +// $Id: querysim.php,v 1.37 2005/06/10 16:00:33 dufuz Exp $ // /* @@ -244,6 +244,8 @@ $this->supported['sub_selects'] = true; $this->supported['transactions'] = false; $this->supported['auto_increment'] = false; + // I have no idea if this is right + $this->supported['primary_key'] = true; $this->options['columnDelim'] = ','; $this->options['dataDelim'] = '|'; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/sqlite.php?r1=1.66&r2=1.67&ty=u Index: pear/MDB2/MDB2/Driver/sqlite.php diff -u pear/MDB2/MDB2/Driver/sqlite.php:1.66 pear/MDB2/MDB2/Driver/sqlite.php:1.67 --- pear/MDB2/MDB2/Driver/sqlite.php:1.66 Mon Jun 6 05:02:28 2005 +++ pear/MDB2/MDB2/Driver/sqlite.php Fri Jun 10 12:00:33 2005 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.66 2005/06/06 09:02:28 lsmith Exp $ +// $Id: sqlite.php,v 1.67 2005/06/10 16:00:33 dufuz Exp $ // /** @@ -85,6 +85,7 @@ $this->supported['transactions'] = true; $this->supported['sub_selects'] = true; $this->supported['auto_increment'] = true; + $this->supported['primary_key'] = true; $this->options['base_transaction_name'] = '___php_MDB2_sqlite_auto_commit_off'; $this->options['fixed_float'] = 0;
« previous php.pear.cvs (#32467) next »