Will output:
{{{
INSERT INTO test_runsql_pony (pink, weight) VALUES (1, 1);
;
}}}
As in:
{{{
'\n INSERT INTO test_runsql_pony (pink, weight) VALUES (1,
1);\n ;'
}}}
We should at least not output the extra semicolon but one thought could be
to run `str.strip()` on the SQL string to drop the leading/trailing
whitespace making it a bit nicer to read.
--
Ticket URL: <https://code.djangoproject.com/ticket/32686>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
PR: https://github.com/django/django/pull/14314
--
Ticket URL: <https://code.djangoproject.com/ticket/32686#comment:1>
* owner: nobody => Hannes Ljungberg
--
Ticket URL: <https://code.djangoproject.com/ticket/32686#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/32686#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32686#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"95754dbc9b9479787e422f32b028493a4d2a6ec1" 95754db]:
{{{
#!CommitTicketReference repository=""
revision="95754dbc9b9479787e422f32b028493a4d2a6ec1"
Refs #32686 -- Added tests for adding a semicolon when collecting SQL for
RunSQL.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32686#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"eab71f7690c523b25b867a9cd5bf6fb82a33c6b4" eab71f76]:
{{{
#!CommitTicketReference repository=""
revision="eab71f7690c523b25b867a9cd5bf6fb82a33c6b4"
Fixed #32686 -- Removed unnecessary semicolon on collected multiline SQL
for RunSQL.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32686#comment:6>