Show SQL at the top of the results
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 18 Aug 2024 22:55:53 +0000 (17:55 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 18 Aug 2024 22:55:53 +0000 (17:55 -0500)
src/pgwui_sql/templates/sql.mak

index 0a38d7817368e126db3d44e7e356bc95740de07f..5859f373aaac59855777487761d53e407a5594a6 100644 (file)
   <p><em class="success">Executed SQL without errors</em>,
   from a file<em class="success">!</em>
   </p>
+  % if sql:
+       <ol>
+         % for sql_line in sql.rstrip().split('\n'):
+           <li>${sql_line}</li>
+         % endfor
+       </ol>
+  % endif
 </%block>
 
 <%block name="page_heading">