Skip to content

Instantly share code, notes, and snippets.

_TPFLAGS_HEAPTYPE = 1 << 9
def _is_heaptype(typ):
return typ.__flags__ & _TPFLAGS_HEAPTYPE
@pjenvey
pjenvey / gist:3808830
Created October 1, 2012 00:38
JSON Serializable SQLAlchemy Object
class JsonSerializableMixin(object):
def __json__(self, request):
"""
Converts all the properties of the object into a dict for use in json.
You can define the following in your class
_json_eager_load :
list of which child classes need to be eagerly loaded. This applies
to one-to-many relationships defined in SQLAlchemy classes.
index 0492696..58ffd68 100644
--- a/src/java/org/apache/cassandra/db/index/keys/KeysSearcher.java
+++ b/src/java/org/apache/cassandra/db/index/keys/KeysSearcher.java
@@ -199,7 +199,8 @@ public class KeysSearcher extends SecondaryIndexSearcher
data = ColumnFamily.create(baseCfs.metadata);
IColumn indexedColumn = data.getColumn(primary.column_name);
- if (indexedColumn == null || !primary.value.equals(indexedColumn.value()))
+ if (indexedColumn == null || indexedColumn.isMarkedForDelete()
+ || !primary.value.equals(indexedColumn.value()))
$ ANT_OPTS=-d64 ant -Dplatform.cpu=sparcv9
<...>
-do-test-run:
[junit] Testsuite: com.kenai.jffi.ClosureTest
[junit] Tests run: 35, Failures: 1, Errors: 0, Time elapsed: 1.072 sec
[junit]
[junit] Testcase: fastNumericClosureVrF(com.kenai.jffi.ClosureTest): FAILED
[junit] Wrong value returned by closure
[junit] junit.framework.AssertionFailedError: Wrong value returned by closure
[junit] at com.kenai.jffi.ClosureTest.testClosureVrF(ClosureTest.java:200)