Tarantool development patches archive
 help / color / mirror / Atom feed
From: Kirill Yukhin <kyukhin@tarantool.org>
To: v.shpilevoy@tarantool.org
Cc: tarantool-patches@freelists.org, Kirill Yukhin <kyukhin@tarantool.org>
Subject: [tarantool-patches] [PATCH 2/3] sql: remove dead find DB functions.
Date: Thu, 29 Mar 2018 09:42:07 +0300	[thread overview]
Message-ID: <5683bd2d41273210169cb57e8c440180b3f062b7.1522303843.git.kyukhin@tarantool.org> (raw)
In-Reply-To: <cover.1522303843.git.kyukhin@tarantool.org>
In-Reply-To: <cover.1522303843.git.kyukhin@tarantool.org>

Remove functions to find DB by name. Not used anymore,
was used by SQL legacy code.
---
 src/box/sql/build.c | 30 ------------------------------
 1 file changed, 30 deletions(-)

diff --git a/src/box/sql/build.c b/src/box/sql/build.c
index 0efd5a6..05a7cc9 100644
--- a/src/box/sql/build.c
+++ b/src/box/sql/build.c
@@ -523,36 +523,6 @@ sqlite3NameFromToken(sqlite3 * db, Token * pName)
 }
 
 /*
- * Parameter zName points to a nul-terminated buffer containing the name
- * of a database ("main", "temp" or the name of an attached db). This
- * function returns the index of the named database in db->aDb[], or
- * -1 if the named db cannot be found.
- */
-int
-sqlite3FindDbName(const char *zName MAYBE_UNUSED)
-{
-	assert(0 == sqlite3_stricmp("main", zName));
-	return 0;
-}
-
-/*
- * The token *pName contains the name of a database (either "main" or
- * "temp" or the name of an attached db). This routine returns the
- * index of the named database in db->aDb[], or -1 if the named db
- * does not exist.
- */
-int
-sqlite3FindDb(sqlite3 * db, Token * pName)
-{
-	int i;			/* Database number */
-	char *zName;		/* Name we are searching for */
-	zName = sqlite3NameFromToken(db, pName);
-	i = sqlite3FindDbName(zName);
-	sqlite3DbFree(db, zName);
-	return i;
-}
-
-/*
  * This routine is used to check if the UTF-8 string zName is a legal
  * unqualified name for an identifier.
  * Some objects may not be checked, because they are validated in Tarantool.
-- 
2.11.0

  parent reply	other threads:[~2018-03-29  6:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-29  6:42 [tarantool-patches] [PATCH 0/3] sql: move column's default value to Tarantool's core Kirill Yukhin
2018-03-29  6:42 ` [tarantool-patches] [PATCH 1/3] Add value field to _schema space Kirill Yukhin
2018-03-29  6:42 ` Kirill Yukhin [this message]
2018-03-29  6:42 ` [tarantool-patches] [PATCH 3/3] sql: move default col values to Tarantool's core Kirill Yukhin
2018-03-29 14:00   ` [tarantool-patches] " v.shpilevoy
2018-03-31  3:55     ` Kirill Yukhin
2018-03-31  4:24       ` [tarantool-patches] [PATCH] " Kirill Yukhin
2018-04-03  6:29       ` [tarantool-patches] Re: [PATCH 3/3] " Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5683bd2d41273210169cb57e8c440180b3f062b7.1522303843.git.kyukhin@tarantool.org \
    --to=kyukhin@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [tarantool-patches] [PATCH 2/3] sql: remove dead find DB functions.' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox