From: James Ren Subject: Re: [PATCH] Correct wrong table name 'tko_test_view' in tko/frontend.py. Date: Thu, 25 Mar 2010 13:35:52 -0700 Message-ID: <32a90f551003251335s4424cacav30807b8560bbb45e@mail.gmail.com> References: <1269246375-8986-1-git-send-email-fyang@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0115080730==" Cc: autotest@test.kernel.org, kvm@vger.kernel.org To: Feng Yang Return-path: In-Reply-To: <1269246375-8986-1-git-send-email-fyang@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org --===============0115080730== Content-Type: multipart/alternative; boundary=000e0cd1123c311ce70482a5fe73 --000e0cd1123c311ce70482a5fe73 Content-Type: text/plain; charset=ISO-8859-1 Before we apply this patch, can we troubleshoot this a bit? Some scripts will probably break, as tko_test_view_2 has different column names. tko_test_view should have been created in frontend migration 46, or via the full schema in database/schema_051.sql for new databases. Could it have been inadvertently dropped at some point? -James On Mon, Mar 22, 2010 at 1:26 AM, Feng Yang wrote: > Change tko_test_view to tko_test_view_2. > autotest_web do not have tko_test_view table. > > Signed-off-by: Feng Yang > --- > tko/frontend.py | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/tko/frontend.py b/tko/frontend.py > index 9033c20..0fd61f9 100644 > --- a/tko/frontend.py > +++ b/tko/frontend.py > @@ -85,7 +85,7 @@ def get_matrix_data(db_obj, x_axis, y_axis, where = None, > fields = ','.join(query_fields_list) > > group_by = '%s, %s, status' % (x_field, y_field) > - rows = db_obj.select(fields, 'tko_test_view', > + rows = db_obj.select(fields, 'tko_test_view_2', > where=where, group_by=group_by, max_rows = MAX_RECORDS) > return status_data(rows, x_field, y_field, query_reasons) > > -- > 1.5.5.6 > > _______________________________________________ > Autotest mailing list > Autotest@test.kernel.org > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > --000e0cd1123c311ce70482a5fe73 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Before we apply this patch, can we troubleshoot this a bit? Some scripts wi= ll probably break, as tko_test_view_2 has different column names.

<= /div>
tko_test_view should have been created in frontend migration 46, = or via the full schema in database/schema_051.sql for new databases. Could = it have been inadvertently dropped at some point?

-James

On Mon, Mar 22= , 2010 at 1:26 AM, Feng Yang <fyang@redhat.com> wrote:
Change tko_test_view to tko_test_view_2.
autotest_web do not have tko_test_view table.

Signed-off-by: Feng Yang <fyang@redh= at.com>
---
=A0tko/frontend.py | =A0 =A02 +-
=A01 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tko/frontend.py b/tko/frontend.py
index 9033c20..0fd61f9 100644
--- a/tko/frontend.py
+++ b/tko/frontend.py
@@ -85,7 +85,7 @@ def get_matrix_data(db_obj, x_axis, y_axis, where =3D Non= e,
=A0 =A0 fields =3D ','.join(query_fields_list)

=A0 =A0 group_by =3D '%s, %s, status' % (x_field, y_field)
- =A0 =A0rows =3D db_obj.select(fields, 'tko_test_view',
+ =A0 =A0rows =3D db_obj.select(fields, 'tko_test_view_2',
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 where=3Dwhere, group_by=3Dgroup_by= , max_rows =3D MAX_RECORDS)
=A0 =A0 return status_data(rows, x_field, y_field, query_reasons)

--
1.5.5.6

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

--000e0cd1123c311ce70482a5fe73-- --===============0115080730== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest --===============0115080730==--