duckdb 0.3.5-dev1274.0 → 0.3.5-dev1297.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/duckdb.hpp CHANGED
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
13
  #define DUCKDB_AMALGAMATION_EXTENDED 1
14
- #define DUCKDB_SOURCE_ID "136e5c73b"
15
- #define DUCKDB_VERSION "v0.3.5-dev1274"
14
+ #define DUCKDB_SOURCE_ID "d4c437597"
15
+ #define DUCKDB_VERSION "v0.3.5-dev1297"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -2194,9 +2194,8 @@ namespace duckdb {
2194
2194
  class VectorBuffer;
2195
2195
 
2196
2196
  struct SelectionData {
2197
- explicit SelectionData(idx_t count) {
2198
- owned_data = unique_ptr<sel_t[]>(new sel_t[count]);
2199
- }
2197
+ explicit SelectionData(idx_t count);
2198
+
2200
2199
  unique_ptr<sel_t[]> owned_data;
2201
2200
  };
2202
2201
 
@@ -3557,6 +3556,7 @@ class VectorStructBuffer : public VectorBuffer {
3557
3556
  public:
3558
3557
  VectorStructBuffer();
3559
3558
  VectorStructBuffer(const LogicalType &struct_type, idx_t capacity = STANDARD_VECTOR_SIZE);
3559
+ VectorStructBuffer(Vector &other, const SelectionVector &sel, idx_t count);
3560
3560
  ~VectorStructBuffer() override;
3561
3561
 
3562
3562
  public:
@@ -3718,7 +3718,7 @@ public:
3718
3718
  //! Verify that the Vector is in a consistent, not corrupt state. DEBUG
3719
3719
  //! FUNCTION ONLY!
3720
3720
  DUCKDB_API void Verify(idx_t count);
3721
- DUCKDB_API void Verify(const SelectionVector &sel, idx_t count);
3721
+ DUCKDB_API static void Verify(Vector &vector, const SelectionVector &sel, idx_t count);
3722
3722
  DUCKDB_API void UTFVerify(idx_t count);
3723
3723
  DUCKDB_API void UTFVerify(const SelectionVector &sel, idx_t count);
3724
3724
 
@@ -3761,6 +3761,10 @@ public:
3761
3761
  // Setters
3762
3762
  DUCKDB_API void SetVectorType(VectorType vector_type);
3763
3763
 
3764
+ private:
3765
+ //! Returns the [index] element of the Vector as a Value.
3766
+ DUCKDB_API static Value GetValue(const Vector &v, idx_t index);
3767
+
3764
3768
  protected:
3765
3769
  //! The vector type specifies how the data of the vector is physically stored (i.e. if it is a single repeated
3766
3770
  //! constant, if it is compressed)
@@ -9897,7 +9901,7 @@ enum class StatementReturnType : uint8_t {
9897
9901
  struct StatementProperties {
9898
9902
  StatementProperties()
9899
9903
  : read_only(true), requires_valid_transaction(true), allow_stream_result(false), bound_all_parameters(true),
9900
- return_type(StatementReturnType::QUERY_RESULT) {
9904
+ return_type(StatementReturnType::QUERY_RESULT), parameter_count(0) {
9901
9905
  }
9902
9906
 
9903
9907
  //! Whether or not the statement is a read-only statement, or whether it can result in changes to the database
@@ -9911,6 +9915,8 @@ struct StatementProperties {
9911
9915
  bool bound_all_parameters;
9912
9916
  //! What type of data the statement returns
9913
9917
  StatementReturnType return_type;
9918
+ //! The number of prepared statement parameters
9919
+ idx_t parameter_count;
9914
9920
  };
9915
9921
 
9916
9922
  } // namespace duckdb
@@ -14157,11 +14163,11 @@ public:
14157
14163
  //! The statement type
14158
14164
  StatementType type;
14159
14165
  //! The statement location within the query string
14160
- idx_t stmt_location;
14166
+ idx_t stmt_location = 0;
14161
14167
  //! The statement length within the query string
14162
- idx_t stmt_length;
14168
+ idx_t stmt_length = 0;
14163
14169
  //! The number of prepared statement parameters (if any)
14164
- idx_t n_param;
14170
+ idx_t n_param = 0;
14165
14171
  //! The query text that corresponds to this SQL statement
14166
14172
  string query;
14167
14173