summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2018-08-13 14:40:32 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-08-13 21:48:32 +0200
commitcb2b52e068717b625b0097a44ecd9e7bbfb8962b (patch)
tree137b9228712fc44580b9a449ce4d7870a8dd9e20 /mysqlc
parent60c55430211ba220e7a3348602c559897dc15908 (diff)
Fix typos
Change-Id: I0bcdff1d355f374e9922cf3f318a88f01af86f4f Reviewed-on: https://gerrit.libreoffice.org/58929 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_general.cxx2
-rw-r--r--mysqlc/source/mysqlc_statement.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/mysqlc/source/mysqlc_general.cxx b/mysqlc/source/mysqlc_general.cxx
index 48b68d081ff7..aa6822a6ba49 100644
--- a/mysqlc/source/mysqlc_general.cxx
+++ b/mysqlc/source/mysqlc_general.cxx
@@ -88,7 +88,7 @@ void allocateSqlVar(void** mem, enum_field_types eType, unsigned nSize)
}
}
-/// Use this intead of mysql_real_escape_string, because that one also escapes
+/// Use this instead of mysql_real_escape_string, because that one also escapes
/// single quote ('), which should not be escaped
rtl::OString escapeSql( const rtl::OString& from )
{
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx
index cf13fd0a30af..ce91ed894376 100644
--- a/mysqlc/source/mysqlc_statement.cxx
+++ b/mysqlc/source/mysqlc_statement.cxx
@@ -136,7 +136,7 @@ sal_Bool SAL_CALL OCommonStatement::execute(const rtl::OUString& sql)
MYSQL* pMySql = m_xConnection->getMysqlConnection();
- // NOTE: differs from mysql c API, wehere mysql_real_escape_string_quote()
+ // NOTE: differs from MySQL C API, where mysql_real_escape_string_quote()
// should be used.
// toExec = mysqlc_sdbc_driver::escapeSql(toExec);
int failure = mysql_real_query(pMySql, toExec.getStr(), toExec.getLength());