Skip to content

Commit

Permalink
Fix for compiling under clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanja-byelkin committed Feb 4, 2022
1 parent d87979b commit a806c99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions sql/sp_head.h
@@ -1,7 +1,7 @@
/* -*- C++ -*- */
/*
Copyright (c) 2002, 2011, Oracle and/or its affiliates.
Copyright (c) 2020, MariaDB
Copyright (c) 2020, 2022, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1060,7 +1060,7 @@ class sp_lex_cursor: public sp_lex_local, public Query_arena
~sp_lex_cursor() { free_items(); }
virtual bool cleanup_stmt(bool /*restore_set_statement_vars*/) override
{ return false; }
Query_arena *query_arena() { return this; }
Query_arena *query_arena() override { return this; }
bool validate()
{
DBUG_ASSERT(sql_command == SQLCOM_SELECT);
Expand Down Expand Up @@ -1840,9 +1840,9 @@ class sp_instr_cpush : public sp_instr, public sp_cursor
virtual ~sp_instr_cpush()
{}

virtual int execute(THD *thd, uint *nextp);
int execute(THD *thd, uint *nextp) override;

virtual void print(String *str);
void print(String *str) override;

/**
This call is used to cleanup the instruction when a sensitive
Expand All @@ -1857,7 +1857,7 @@ class sp_instr_cpush : public sp_instr, public sp_cursor
uint m_cursor; /**< Frame offset (for debugging) */

public:
virtual PSI_statement_info* get_psi_info() { return & psi_info; }
PSI_statement_info* get_psi_info() override { return & psi_info; }
static PSI_statement_info psi_info;
}; // class sp_instr_cpush : public sp_instr

Expand Down
6 changes: 3 additions & 3 deletions sql/sql_prepare.cc
@@ -1,5 +1,5 @@
/* Copyright (c) 2002, 2015, Oracle and/or its affiliates.
Copyright (c) 2008, 2021, MariaDB
Copyright (c) 2008, 2022, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -200,8 +200,8 @@ class Prepared_statement: public Statement
Prepared_statement(THD *thd_arg);
virtual ~Prepared_statement();
void setup_set_params();
virtual Query_arena::Type type() const;
virtual bool cleanup_stmt(bool restore_set_statement_vars) override;
Query_arena::Type type() const override;
bool cleanup_stmt(bool restore_set_statement_vars) override;
bool set_name(const LEX_CSTRING *name);
inline void close_cursor() { delete cursor; cursor= 0; }
inline bool is_in_use() { return flags & (uint) IS_IN_USE; }
Expand Down

0 comments on commit a806c99

Please sign in to comment.