<div dir="ltr">������������.<br><br>� ������ ������ ������� CONCAT �� �����������, �� �������� �� ������� �� � ��������� �������.<br><br>������ ��� ����� ������� �������� +, �� � ������ ������ ��� �� ���������, ������ ��� ���� � ����� - ����� � �� ������.<br>
<br>� ���� ���������� ������� ����� ������� �� ���� ������ �������, � �������� ��������� ���������� ��� � ������ ��� � ������, �� ��� ����� ������� �������� ��� ��� �� ����� �������� ��������� ������� CONCAT.<br><div class="gmail_extra">
<br>---<br><br>At this moment, support of CONCAT function is not implemented yet, but we'll probably add it in next releases.<br><br><div class="gmail_extra">Currently you can concatenate strings using + operation, but in this particular query the date and the month are numbers, not strings.<br>
<br></div><div class="gmail_extra">I think that in this query it is simpler to return entire object from the query and perform concatenation in Python, but it makes sense to add the CONCAT operation support for more complex queries.</div>
<br><br><br><div class="gmail_quote">On Tue, Mar 18, 2014 at 6:57 PM, ����� ������� <span dir="ltr"><<a href="mailto:gzbender74@gmail.com" target="_blank">gzbender74@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">������������!<div><br></div><div>����� �� ������������ � ����������ȚCONCAT �� ����<br>qs = orm.select(concat(ml.date.day, ml.date.month), ml.moderator.email, ml.moderation_type, ml.moderation_status, orm.count(ml))</div>
<div>� � � � � � � � for ml in ModerationLog.p</div><div>� � � � � � � � if date_from < ml.date and ml.date <= date_to).order_by('ml.date.day')</div><div>?<br></div><div><br></div></div>
<br>_______________________________________________<br>
ponyorm-list mailing list<br>
<a href="mailto:ponyorm-list@ponyorm.org">ponyorm-list@ponyorm.org</a><br>
<a href="/ponyorm-list" target="_blank">/ponyorm-list</a><br>
<br></blockquote></div><br></div></div>