Repository navigation
Rethinkdb next - #1
Conversation
…oblems: If the default cc compiler on the system is not GCC, sqlite3.c will be compiled with a different compiler than the remaining .cc files (for which g++ was already explicitly specified). I had this issue on my PC where cc envokes the Oracle Solaris Studio compiler, which resulted in very weird linking errors.
|
The content type checking should be abstracted into a function -- we duplicate exactly the same piece of code twice. |
|
I think even better than that would be just inlining the sub stringing On Monday, November 5, 2012, coffeemug wrote:
|
|
I "outlined" it intentionally to make the code more verbose and easier to read, but that's up to taste. |
|
How about this? |
|
Alright I have reviewed this and pushed it to rethinkdb-internal it should propagate to the external repo shortly and thus close this request. |
|
FYI, this took a while because we broke our hourly cron job that pushes internal to public. Fixed now. Also, hopefully internal will go away soon so we can get rid of this whole process. |
Fix regex for matching server version
Fix for Twisted driver Python 3 compatibility and some corner cases
QUEUE rethinkdb#1 of the approved PHASE3 roadmap. UPSERT (term 216): - table.upsert(docs) = insert with conflict='update' semantics by default, Postgres ON CONFLICT DO UPDATE parity. Same optargs as insert (conflict, durability, return_changes, ...); an explicit optarg overrides the default. - Implemented by parameterizing insert_term_t with a conflict default and subclassing — zero duplicated write logic. MERGE_DEEP (term 217): - Postgres-style deep merge. Stock already recurses into nested objects but REPLACES arrays wholesale; merge_deep also descends into arrays element-wise (by position), merging object elements and extending longer right arrays. falls back to stock behavior. - Added to the global acceptable-optargs whitelist (it was missing, causing a compile-time sanity-check crash). Driver: regenerated ql2_pb2.py, Upsert + MergeDeep query classes, and table.upsert()/expr().merge_deep() methods. Whitelist regression test extended to cover both new term IDs. Verified live: 9/9 merge E2E assertions (upsert update/insert/conflict override; deep nested recursion; element-wise array merge; shallow fallback), 19/19 driver E2E, whitelist unit test green.
…patch Fix regex for matching server version
Fix for Twisted driver Python 3 compatibility and some corner cases
QUEUE rethinkdb#1 of the approved PHASE3 roadmap. UPSERT (term 216): - table.upsert(docs) = insert with conflict='update' semantics by default, Postgres ON CONFLICT DO UPDATE parity. Same optargs as insert (conflict, durability, return_changes, ...); an explicit optarg overrides the default. - Implemented by parameterizing insert_term_t with a conflict default and subclassing — zero duplicated write logic. MERGE_DEEP (term 217): - Postgres-style deep merge. Stock already recurses into nested objects but REPLACES arrays wholesale; merge_deep also descends into arrays element-wise (by position), merging object elements and extending longer right arrays. falls back to stock behavior. - Added to the global acceptable-optargs whitelist (it was missing, causing a compile-time sanity-check crash). Driver: regenerated ql2_pb2.py, Upsert + MergeDeep query classes, and table.upsert()/expr().merge_deep() methods. Whitelist regression test extended to cover both new term IDs. Verified live: 9/9 merge E2E assertions (upsert update/insert/conflict override; deep nested recursion; element-wise array merge; shallow fallback), 19/19 driver E2E, whitelist unit test green. Co-authored-by: Alexis Okuwa <[email protected]>
Two small changes: