From cb2b52e068717b625b0097a44ecd9e7bbfb8962b Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Mon, 13 Aug 2018 14:40:32 +0200 Subject: Fix typos Change-Id: I0bcdff1d355f374e9922cf3f318a88f01af86f4f Reviewed-on: https://gerrit.libreoffice.org/58929 Reviewed-by: Julien Nabet Tested-by: Jenkins --- mysqlc/source/mysqlc_general.cxx | 2 +- mysqlc/source/mysqlc_statement.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mysqlc/source') 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()); -- cgit