note 97955 modified in class.tokyotyrant by danbrown
| From: | danbrown@php.net | Date: | Tue, 18 May 2010 15:04:41 +0000 |
| Subject: | note 97955 modified in class.tokyotyrant by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169354@lists.php.net to get a copy of this message | ||
TokyoTyrant::RDBQC_STREQ is case sensitive. The key in TokyoCabinet is case sensitive too.
For instance:
<?php
$tt->put("test",array("column1"=>"data1"));
$tt->put("Test",array("Column1"=>"data1"));
?>
added 2 rows in tc.
<?php
$query=$tt->getQuery();
$query->addCond("Column1", TokyoTyrant::RDBQC_STREQ, "data1");
$query->search();
?>
there will be only one result, and it's the row with key="Test".
--was--
TokyoTyrant::RDBQC_STREQ is case sensitive. The key in TokyoCabinet is case sensitive too.
For instance:
$tt->put("test",array("column1"=>"data1"));
$tt->put("Test",array("Column1"=>"data1"));
added 2 rows in tc.
$query=$tt->getQuery();
$query->addCond("Column1", TokyoTyrant::RDBQC_STREQ, "data1");
$query->search();
there will be only one result, and it's the row with key="Test".
http://php.net/manual/en/class.tokyotyrant.php