From a57c8957dc5154edce2a3b1eed6291bb8628a8a9 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 30 Jun 2010 19:58:02 +0200 Subject: [PATCH] Saving transformation on system table dbt_transformation. --- src/dbtransformer.c | 8 ++++---- tests/test.db | Bin 5120 -> 5120 bytes 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dbtransformer.c b/src/dbtransformer.c index 19231a6..92581e5 100644 --- a/src/dbtransformer.c +++ b/src/dbtransformer.c @@ -463,11 +463,11 @@ dbt_transform (Dbt *dbt) if (tosave) { - /*gchar *operation; + gchar *operation; xmlBufferPtr xbuf = xmlBufferCreate (); - xmlNodeDump (xbuf, priv->xml_doc, xnodeset->nodeTab[i], 2, 1); - operation = xml - dbt_save_transformation (dbt, id, g_strstrip (operation));*/ + xmlNodeDump (xbuf, priv->xml_doc, xnodeset->nodeTab[i], 0, 0); + operation = g_strstrip (g_strdup (xbuf->content)); + dbt_save_transformation (dbt, id, g_strstrip (operation)); } } } diff --git a/tests/test.db b/tests/test.db index 761e02c07e9de37bb37b2c8bf58f3f05dac3f750..81e5ffacacc5aa0aa2d13df7dfca3a35e89f12dd 100644 GIT binary patch literal 5120 zcmeHJ&r8EF6i%}0m>_r?BI2Vb3j==)Z*y3+$Z$@r_26kl8(nd>nnqFdQt=P-=>On9 zW4cakWQvG84D+B#`r5qj%hx{MJJ@dqg28FTFQ|YjG7!dS4FDmuEU&y-@`mIbIJf?G zIVqnSWCazT3+v=XF0_rd0?Cw7EKg74vzjb*N^z9kz^b`y z)+b7(T71<_=aSv@99L~1?9ENt2{aFPT1tD6?pnyU)fPU7u0NXCKu?Xqm`f_AQYinr uL&(wmIHiL4n?C8Moly>bfJnOj59x>3VYLDypn%T*5%@@&qE=u?3cLZqTpsKI delta 88 zcmZqBXwaA-EvU)>0W3g@35XRZ>e%owF*`9ZA7FN3GG#K|EXZ=0k%^IaV&f#ns)>zd ko1K^sv212x`NKRhfSr{QsD%}%k -- 2.49.0