File: spelling.patch

package info (click to toggle)
tntdb 1.4-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,632 kB
  • sloc: cpp: 15,806; makefile: 261; ansic: 260; sql: 158; sh: 11
file content (27 lines) | stat: -rw-r--r-- 1,341 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: spelling corrections detected by lintian
Index: tntdb-1.4/src/mysql/connection.cpp
===================================================================
--- tntdb-1.4.orig/src/mysql/connection.cpp	2019-10-08 08:49:49.000000000 +0200
+++ tntdb-1.4/src/mysql/connection.cpp	2023-06-13 10:07:44.324310717 +0200
@@ -68,7 +68,7 @@
         << client_flag << ')');
 
       if (::mysql_init(&mysql) == 0)
-        throw std::runtime_error("cannot initalize mysql");
+        throw std::runtime_error("cannot initialize mysql");
       initialized = true;
 
       if (::mysql_options(&mysql, MYSQL_READ_DEFAULT_GROUP, app && app[0] ? app : "tntdb") != 0)
Index: tntdb-1.4/src/mysql/statement.cpp
===================================================================
--- tntdb-1.4.orig/src/mysql/statement.cpp	2019-10-08 08:49:49.000000000 +0200
+++ tntdb-1.4/src/mysql/statement.cpp	2023-06-13 10:07:19.280299074 +0200
@@ -697,7 +697,7 @@
         log_debug("mysql_stmt_result_metadata(" << stmt << ')');
         MYSQL_RES* metadata = mysql_stmt_result_metadata(stmt);
         if (!metadata)
-          throw Error("no metadata avaliable");
+          throw Error("no metadata available");
         log_debug("mysql_stmt_result_metadata(" << stmt << ") => " << metadata);
 
         log_debug("mysql_fetch_fields(" << metadata << ')');