From 8e5b723622945a2399f6f1398c07de6902cbc336 Mon Sep 17 00:00:00 2001 From: Karoly Gossler Date: Mon, 4 Mar 2024 19:39:23 +0100 Subject: [PATCH] fix quotation marks --- src/Query/Mysql/ConcatWs.php | 6 +++--- src/Query/Mysql/ConvertTz.php | 4 ++-- src/Query/Mysql/Crc32.php | 2 +- src/Query/Mysql/Date.php | 2 +- src/Query/Mysql/DateFormat.php | 4 ++-- src/Query/Mysql/Day.php | 2 +- src/Query/Mysql/DayName.php | 2 +- src/Query/Mysql/Extract.php | 4 ++-- src/Query/Mysql/Field.php | 4 ++-- src/Query/Mysql/FindInSet.php | 2 +- src/Query/Mysql/FromUnixtime.php | 2 +- src/Query/Mysql/Hex.php | 2 +- src/Query/Mysql/Hour.php | 2 +- src/Query/Mysql/Inet6Aton.php | 4 ++-- src/Query/Mysql/InetAton.php | 2 +- src/Query/Mysql/Instr.php | 4 ++-- src/Query/Mysql/IsIpv4.php | 2 +- src/Query/Mysql/JsonLength.php | 2 +- 18 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/Query/Mysql/ConcatWs.php b/src/Query/Mysql/ConcatWs.php index 2b5dd347..44c073ca 100644 --- a/src/Query/Mysql/ConcatWs.php +++ b/src/Query/Mysql/ConcatWs.php @@ -19,9 +19,9 @@ * @link https://dev.mysql.com/doc/refman/en/string-functions.html#function_concat-ws * * @author Andrew Mackrodt - * @example SELECT CONCAT_WS(",", foo.bar, foo.bar2) FROM entity - * @example SELECT CONCAT_WS(",", foo.bar, foo.bar2, foo.bar3) FROM entity - * @example SELECT CONCAT_WS(",", foo.bar, foo.bar2, "NOTEMPTY") FROM entity + * @example SELECT CONCAT_WS(',', foo.bar, foo.bar2) FROM entity + * @example SELECT CONCAT_WS(',', foo.bar, foo.bar2, foo.bar3) FROM entity + * @example SELECT CONCAT_WS(',', foo.bar, foo.bar2, "NOTEMPTY") FROM entity */ class ConcatWs extends FunctionNode { diff --git a/src/Query/Mysql/ConvertTz.php b/src/Query/Mysql/ConvertTz.php index f80bef1c..4b2f0db4 100644 --- a/src/Query/Mysql/ConvertTz.php +++ b/src/Query/Mysql/ConvertTz.php @@ -16,8 +16,8 @@ * * @link https://dev.mysql.com/doc/refman/en/date-and-time-functions.html#function_convert-tz * - * @example SELECT CONVERT_TZ(foo.bar, "GMT", "CEST") FROM entity - * @example SELECT CONVERT_TZ("2024-02-06 12:00:00", "GMT", "CEST") + * @example SELECT CONVERT_TZ(foo.bar, 'GMT', 'CEST') FROM entity + * @example SELECT CONVERT_TZ('2024-02-06 12:00:00', 'GMT', 'CEST') */ class ConvertTz extends FunctionNode { diff --git a/src/Query/Mysql/Crc32.php b/src/Query/Mysql/Crc32.php index 2ec60ca3..21d919e0 100644 --- a/src/Query/Mysql/Crc32.php +++ b/src/Query/Mysql/Crc32.php @@ -15,7 +15,7 @@ * * @author Igor Timoshenko * @example SELECT CRC32(foo.bar) FROM entity - * @example SELECT CRC32("string") + * @example SELECT CRC32('string') */ class Crc32 extends FunctionNode { diff --git a/src/Query/Mysql/Date.php b/src/Query/Mysql/Date.php index e1eaeed7..e0080c39 100644 --- a/src/Query/Mysql/Date.php +++ b/src/Query/Mysql/Date.php @@ -14,7 +14,7 @@ * @link https://dev.mysql.com/doc/refman/en/date-and-time-functions.html#function_date * * @author Steve Lacey - * @example SELECT DATE("2024-05-06") + * @example SELECT DATE('2024-05-06') * @example SELECT DATE(foo.bar) */ class Date extends FunctionNode diff --git a/src/Query/Mysql/DateFormat.php b/src/Query/Mysql/DateFormat.php index 2bed8b85..9d471b64 100644 --- a/src/Query/Mysql/DateFormat.php +++ b/src/Query/Mysql/DateFormat.php @@ -16,8 +16,8 @@ * * @author Steve Lacey * - * @example SELECT DATEFORMAT("2024-05-06", "%a") - * @example SELECT DATEFORMAT(foo.bar, "%H") FROM entity + * @example SELECT DATEFORMAT('2024-05-06', '%a') + * @example SELECT DATEFORMAT(foo.bar, '%H') FROM entity */ class DateFormat extends FunctionNode { diff --git a/src/Query/Mysql/Day.php b/src/Query/Mysql/Day.php index ee993519..4387cb41 100644 --- a/src/Query/Mysql/Day.php +++ b/src/Query/Mysql/Day.php @@ -16,7 +16,7 @@ * @author Rafael Kassner * @author Sarjono Mukti Aji * @example SELECT DAY(foo.bar) FROM entity - * @example SELECT DAY("2023-05-06") + * @example SELECT DAY('2023-05-06') */ class Day extends FunctionNode { diff --git a/src/Query/Mysql/DayName.php b/src/Query/Mysql/DayName.php index 1eae72ea..5677d4d1 100644 --- a/src/Query/Mysql/DayName.php +++ b/src/Query/Mysql/DayName.php @@ -15,7 +15,7 @@ * * @author Steve Lacey * @example SELECT DAYNAME(foo.bar) FROM entity - * @example SELECT DAYNAME("2023-05-06") + * @example SELECT DAYNAME('2023-05-06') */ class DayName extends FunctionNode { diff --git a/src/Query/Mysql/Extract.php b/src/Query/Mysql/Extract.php index aad5acc3..89d486a3 100644 --- a/src/Query/Mysql/Extract.php +++ b/src/Query/Mysql/Extract.php @@ -18,8 +18,8 @@ * * @author Ahwalian Masykur * - * @example SELECT EXTRACT("MINUTE" FROM foo.bar) FROM entity - * @example SELECT EXTRACT("YEAR" FROM "2024-05-06") + * @example SELECT EXTRACT('MINUTE' FROM foo.bar) FROM entity + * @example SELECT EXTRACT('YEAR' FROM '2024-05-06') */ class Extract extends DateAdd { diff --git a/src/Query/Mysql/Field.php b/src/Query/Mysql/Field.php index 01a70ee8..193383ba 100644 --- a/src/Query/Mysql/Field.php +++ b/src/Query/Mysql/Field.php @@ -17,8 +17,8 @@ * * @author Jeremy Hicks * - * @example SELECT FIELD("str", foo.bar) FROM entity - * @example SELECT FIELD("str", foo.bar, foo.bar2, foo.bar3) FROM entity + * @example SELECT FIELD('str', foo.bar) FROM entity + * @example SELECT FIELD('str', foo.bar, foo.bar2, foo.bar3) FROM entity */ class Field extends FunctionNode { diff --git a/src/Query/Mysql/FindInSet.php b/src/Query/Mysql/FindInSet.php index f552c93a..e025f814 100644 --- a/src/Query/Mysql/FindInSet.php +++ b/src/Query/Mysql/FindInSet.php @@ -14,7 +14,7 @@ * @link https://dev.mysql.com/doc/refman/en/string-functions.html#function_find-in-set * * @example SELECT FIND_IN_SET(foo.bar, foo.bar2) FROM entity - * @example SELECT FIND_IN_SET("str", "a,b,str") FROM entity + * @example SELECT FIND_IN_SET('str', 'a,b,str') FROM entity */ class FindInSet extends FunctionNode { diff --git a/src/Query/Mysql/FromUnixtime.php b/src/Query/Mysql/FromUnixtime.php index 47011409..201024b5 100644 --- a/src/Query/Mysql/FromUnixtime.php +++ b/src/Query/Mysql/FromUnixtime.php @@ -15,7 +15,7 @@ * * @author Nima S * @example SELECT FROM_UNIXTIME(123456789) - * @example SELECT FROM_UNIXTIME(foo.bar, "%Y") FROM entity + * @example SELECT FROM_UNIXTIME(foo.bar, '%Y') FROM entity */ class FromUnixtime extends FunctionNode { diff --git a/src/Query/Mysql/Hex.php b/src/Query/Mysql/Hex.php index 502e7de1..90de5ba3 100644 --- a/src/Query/Mysql/Hex.php +++ b/src/Query/Mysql/Hex.php @@ -13,7 +13,7 @@ * * @link https://dev.mysql.com/doc/refman/en/string-functions.html#function_hex * - * @example SELECT HEX("string") + * @example SELECT HEX('string') * @example SELECT HEX(foo.bar) FROM entity */ class Hex extends FunctionNode diff --git a/src/Query/Mysql/Hour.php b/src/Query/Mysql/Hour.php index 999dd7f3..48a886dc 100644 --- a/src/Query/Mysql/Hour.php +++ b/src/Query/Mysql/Hour.php @@ -15,7 +15,7 @@ * * @author Dawid Nowak * - * @example SELECT HOUR("12:50:15") + * @example SELECT HOUR('12:50:15') * @example SELECT HOUR(foo.bar) FROM entity */ class Hour extends FunctionNode diff --git a/src/Query/Mysql/Inet6Aton.php b/src/Query/Mysql/Inet6Aton.php index 915cc495..6bce8b1f 100644 --- a/src/Query/Mysql/Inet6Aton.php +++ b/src/Query/Mysql/Inet6Aton.php @@ -14,8 +14,8 @@ * * @link https://dev.mysql.com/doc/refman/en/miscellaneous-functions.html#function_inet6-aton * - * @example SELECT INET6_ATON("127.0.0.1") - * @example SELECT HEX(INET6_ATON("127.0.0.1")) + * @example SELECT INET6_ATON('127.0.0.1') + * @example SELECT HEX(INET6_ATON('127.0.0.1')) * @example SELECT HEX(INET6_ATON(foo.bar)) FROM entity */ class Inet6Aton extends FunctionNode diff --git a/src/Query/Mysql/InetAton.php b/src/Query/Mysql/InetAton.php index a12155dc..60f83198 100644 --- a/src/Query/Mysql/InetAton.php +++ b/src/Query/Mysql/InetAton.php @@ -14,7 +14,7 @@ * * @link https://dev.mysql.com/doc/refman/en/miscellaneous-functions.html#function_inet-aton * - * @example SELECT INET_ATON("127.0.0.1") + * @example SELECT INET_ATON('127.0.0.1') * @example SELECT INET_ATON(foo.bar) FROM entity */ class InetAton extends FunctionNode diff --git a/src/Query/Mysql/Instr.php b/src/Query/Mysql/Instr.php index f8171739..ddd4aaed 100644 --- a/src/Query/Mysql/Instr.php +++ b/src/Query/Mysql/Instr.php @@ -15,8 +15,8 @@ * * @link https://dev.mysql.com/doc/refman/en/string-functions.html#function_instr * - * @example SELECT INSTR("foobar", "bar") - * @example SELECT INSTR(foo.bar, "bar") FROM entity + * @example SELECT INSTR('foobar', 'bar') + * @example SELECT INSTR(foo.bar, 'bar') FROM entity */ class Instr extends FunctionNode { diff --git a/src/Query/Mysql/IsIpv4.php b/src/Query/Mysql/IsIpv4.php index cbfef54b..b85fb281 100644 --- a/src/Query/Mysql/IsIpv4.php +++ b/src/Query/Mysql/IsIpv4.php @@ -14,7 +14,7 @@ * * @link https://dev.mysql.com/doc/refman/en/miscellaneous-functions.html#function_is-ipv4 * - * @example SELECT IS_IPV4("127.0.0.1") + * @example SELECT IS_IPV4('127.0.0.1') * @example SELECT IS_IPV4(foo.bar) FROM entity */ class IsIpv4 extends FunctionNode diff --git a/src/Query/Mysql/JsonLength.php b/src/Query/Mysql/JsonLength.php index 1118e6c1..a0081191 100644 --- a/src/Query/Mysql/JsonLength.php +++ b/src/Query/Mysql/JsonLength.php @@ -15,7 +15,7 @@ * * @link https://dev.mysql.com/doc/refman/en/json-attribute-functions.html#function_json-length * - * @example SELECT JSON_LENGTH(foo.bar, "$.low") FROM entity + * @example SELECT JSON_LENGTH(foo.bar, '$.low') FROM entity */ class JsonLength extends FunctionNode {