Ignore:
Timestamp:
12/20/2010 06:49:13 AM (15 years ago)
Author:
apokalyptik
Message:

Some things only work against InnoDB, they only corrupt other table types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • handler-socket-client-php/handler_socket.php

    r90 r91  
    55 *      // Tested with source compiled MySQL 5.1.54 and ahiguti-HandlerSocket-Plugin-for-MySQL-c865c53
    66 *      $hs = new handler_socket( '127.0.0.1', 9998, 9999 );
    7  *      $hs->index( 'tesst_db', 'test_table', 'PRIMARY', array('col1','col2','col3') );
    8  *      // Works as expected in my testing
     7 *      // Works with InnoDB and MyISAM
     8 *      $hs->index( 'test_db', 'test_table', 'PRIMARY', array('id','name','code') );
     9 *      // Works with InnoDB
     10 *      $hs->insert( 'PRIMARY', array( 1, 'FOO', 'F@' ) );
     11 *      // Works with InnoDB and MyISAM
    912 *      $results = $hs->select('PRIMARY', '=', 1 );
    10  *      // Doesn't work as expected (reports success, corrupts column, repair table then drops the column)
    11  *      $hs->insert( 'PRIMARY', array( $col1, $col2, $col3 ) );
    12  *      // This does't work as expected (reports success, adds corrupted column, repair table drops the column)
    13  *      $hs->update( 'PRIMARY', '=', 1, array( $col1, $col2, $col3 ) );
    14  *      // Works as expected
     13 *      // Works with InnoDB
     14 *      $hs->update( 'PRIMARY', '=', 1, array( '1', 'FOO UPDATED AT '.time() ) );
     15 *      // Works with InnoDB and MyISAM
    1516 *      $hs->delete( 'PRIMARY', '=', 1 );
    1617 *
     
    110111
    111112    /*
    112      * Update via comparison against a defined index (note: right now just seems to corrupt tables)
     113     * Update via comparison against a defined index
    113114     *
    114115     * @param $key string the defined index you wish to use, use "PRIMARY" fpr the primary key
     
    140141        return $this->parse_response( $this->query( 'write', $request ), true );
    141142    }
     143
    142144    /*
    143      * Insert into a given table, using the key as a reference (note: right now just seems to corrupt tables)
     145     * Insert into a given table, using the key as a reference
    144146     *
    145147     * @param $key string the defined index you wish to use, use "PRIMARY" fpr the primary key
Note: See TracChangeset for help on using the changeset viewer.