Daniel Fiala
7fe653f08c
cql3/selectable: Add selectable::with_cast for CAST AS functions.
...
Signed-off-by: Daniel Fiala <daniel@scylladb.com >
2017-10-07 21:04:40 +02:00
Gleb Natapov
f3b515052b
udt: fix error generation if accessed type is not udt
...
Fixes #1198
Message-Id: <1460884314-3717-2-git-send-email-gleb@scylladb.com >
2016-04-18 12:45:03 +03:00
Duarte Nunes
ece89069dd
udt: Implement to_string() for selectable
...
Signed-off-by: Duarte Nunes <duarte@scylladb.com >
Message-Id: <1460884314-3717-1-git-send-email-gleb@scylladb.com >
2016-04-18 12:44:48 +03:00
Pekka Enberg
38a54df863
Fix pre-ScyllaDB copyright statements
...
People keep tripping over the old copyrights and copy-pasting them to
new files. Search and replace "Cloudius Systems" with "ScyllaDB".
Message-Id: <1460013664-25966-1-git-send-email-penberg@scylladb.com >
2016-04-08 08:12:47 +03:00
Avi Kivity
d5cf0fb2b1
Add license notices
2015-09-20 10:43:39 +03:00
Avi Kivity
6290dee438
db: const correctness for abstract_type and friends
...
Types are immutable.
2015-04-29 15:40:38 +03:00
Tomasz Grabiec
731a63e371
schema: Embed raw_schema inside schema
...
Public fields got encapsulated.
2015-04-24 18:01:01 +02:00
Avi Kivity
f841a05475
cql3: convert selectable::with_field_selection to C++
...
Due to circular dependencies (selectable::with_field_selection ->
column_identifier -> selectable) a new header file was created.
2015-04-20 16:15:34 +03:00
Avi Kivity
3d38708434
cql3: pass a database& instance to most foo::raw::prepare() variants
...
To prepare a user-defined type, we need to look up its name in the keyspace.
While we get the keyspace name as an argument to prepare(), it is useless
without the database instance.
Fix the problem by passing a database reference along with the keyspace.
This precolates through the class structure, so most cql3 raw types end up
receiving this treatment.
Origin gets along without it by using a singleton. We can't do this due
to sharding (we could use a thread-local instance, but that's ugly too).
Hopefully the transition to a visitor will clean this up.
2015-04-20 16:15:34 +03:00
Avi Kivity
33038a625f
cql3: convert selectable::writetime_or_ttl to C++
...
Moved to new file to avoid cyclic dependencies.
2015-04-07 16:17:56 +03:00
Avi Kivity
58dda6256e
cql3: convert selectable::with_function to C++
2015-04-05 16:07:31 +03:00