This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/support/ccm.php b/support/ccm.php | |
| index b93ef16..32fccff 100644 | |
| --- a/support/ccm.php | |
| +++ b/support/ccm.php | |
| @@ -90,8 +90,8 @@ class CCM | |
| $this->session = $this->cluster->connect(); | |
| break; | |
| } catch (Cassandra\Exception\RuntimeException $e) { | |
| - $this->cluster = null; | |
| - $this->session = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/ext/src/Cassandra/DefaultSession.c b/ext/src/Cassandra/DefaultSession.c | |
| index 90bb6ca..1b37ef3 100644 | |
| --- a/ext/src/Cassandra/DefaultSession.c | |
| +++ b/ext/src/Cassandra/DefaultSession.c | |
| @@ -433,7 +433,7 @@ PHP_METHOD(DefaultSession, execute) | |
| serial_consistency = opts->serial_consistency; | |
| if (!PHP5TO7_ZVAL_IS_UNDEF(opts->retry_policy)) | |
| - retry_policy = (PHP_CASSANDRA_GET_RETRY_POLICY(opts->retry_policy))->policy; | |
| + retry_policy = (PHP_CASSANDRA_GET_RETRY_POLICY(PHP5TO7_ZVAL_MAYBE_P(opts->retry_policy)))->policy; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Handle the overall setup steps for a test suite | |
| * | |
| * @param PHPUnit_Framework_TestSuite $test_suite Test suite starting | |
| */ | |
| public function startTestSuite(PHPUnit_Framework_TestSuite $test_suite) { | |
| // Determine type of test suite being started | |
| echo "{$test_suite->getName()}\n"; | |
| if (strpos($test_suite->getName(), "integration") !== false ) { | |
| printf("\nEntering PHP Driver Integration Tests Setup\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/ext/src/Cassandra/Rows.c b/ext/src/Cassandra/Rows.c | |
| index 62b59f3..1da6836 100644 | |
| --- a/ext/src/Cassandra/Rows.c | |
| +++ b/ext/src/Cassandra/Rows.c | |
| @@ -132,7 +132,7 @@ PHP_METHOD(Rows, offsetExists) | |
| PHP_METHOD(Rows, offsetGet) | |
| { | |
| zval *offset; | |
| - zval *value; | |
| + php5to7_zval *value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/support/ccm.php b/support/ccm.php | |
| index 8f5f5d3..4ce9433 100644 | |
| --- a/support/ccm.php | |
| +++ b/support/ccm.php | |
| @@ -289,7 +289,7 @@ class CCM | |
| $clusters = $this->getClusters(); | |
| foreach ($clusters['list'] as $cluster) { | |
| // Determine if the cluster should be deleted | |
| - if (!$is_all && substr(strtolower($cluster), 0, strlen($this->clusterPrefix)) != $this->clusterPrefix) { | |
| + if (!$is_all || substr(strtolower($cluster), 0, strlen($this->clusterPrefix)) != $this->clusterPrefix) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Cassandra; | |
| $fields = array('a' => Type::int(), 'b' => Type::text(), 'c' => Type::bigint()); | |
| $udt = new UserTypeValue($fields); | |
| $udt->set('a', 1); | |
| $udt->set('b', 'xyz'); | |
| $udt->set('c', new Bigint('123')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 <cpp-driver-dse-branch> <libuv-version>" | |
| exit 1 | |
| fi | |
| if [ -e /etc/redhat-release ]; then | |
| for version in $(ls | sed -rne 's/^libuv-(debuginfo-|devel-)?([0-9a-z.]+)-.*/\2/p'); do | |
| if [ -e libuv-$version*.rpm ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import xml.etree.cElementTree as et | |
| tree = et.ElementTree(file=sys.argv[1]) | |
| print '<html>' | |
| print '<head><title>JIRA issues</title></head>' | |
| print '<body>' | |
| for item in tree.iter('item'): | |
| key = item.find('key').text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| int invalid_compare(uint32_t a, uint32_t b) { | |
| // Note: Conversion from unsigned to signed int. This will fail for any | |
| // spread of a - b that's greater than INT32_MAX. | |
| return a - b; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE test.table1 (key1 text PRIMARY KEY , value1 text); | |
| keyspace_name | table_name | column_name | position | |
| ---------------+------------+-------------+---------- | |
| test | table1 | key1 | -1 | |
| test | table1 | value1 | -1 | |
| CREATE TABLE test.table3 (key1 text, value1 text, value2 text, PRIMARY KEY(key1, value1)); |