X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsqlmaker%2Fquotes.t;h=e4c6dbda5c4008092883214bab0e5af34ac7989b;hb=b25af2a8cd075015695e74ef077afd991442f615;hp=4a5357b7d06b2f2b7bd46e828d3cf05824afa2ae;hpb=350e8d57bf21e4006e2a5e5c26648cb5ca4903ea;p=dbsrgits%2FDBIx-Class.git diff --git a/t/sqlmaker/quotes.t b/t/sqlmaker/quotes.t index 4a5357b..e4c6dbd 100644 --- a/t/sqlmaker/quotes.t +++ b/t/sqlmaker/quotes.t @@ -32,6 +32,13 @@ is_same_sql_bind( 'got correct SQL for count query with bracket quoting' ); +is_same_sql_bind( + $schema->resultset('Quotes')->search({})->as_query, + '(SELECT [me].[`has` [more]] "quotes"] FROM [`with` [some]] "quotes"] [me])', + [], + 'got correct escaped quotes with bracket quoting' +); + $schema->storage->sql_maker->quote_char('`'); $schema->storage->sql_maker->name_sep('.'); @@ -42,6 +49,13 @@ is_same_sql_bind ( 'got correct SQL for count query with mysql quoting' ); +is_same_sql_bind( + $schema->resultset('Quotes')->search({})->as_query, + '(SELECT `me`.```has`` [more] "quotes"` FROM ```with`` [some] "quotes"` `me`)', + [], + 'got correct escaped quotes with mysql quoting' +); + # !!! talk to ribasushi *explicitly* before modfying these tests !!! { is_same_sql_bind(