<br><br><div class="gmail_quote">2009/10/10 Herbert König <span dir="ltr">&lt;<a href="mailto:herbertkoenig@gmx.net">herbertkoenig@gmx.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mariano,<br>
<br>
I think I need some help in this matter.<br></blockquote><div><br>Ok, let&#39;s try to fix it.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

HK&gt; As to keep it manageable I&#39;ll factor the String<br>
HK&gt; &#39;INSERT INTO signature(code, name, observations, id_student)<br>
HK&gt;  VALUES (11, &#39;&#39;Something&#39;&#39;, &#39;&#39;Nothing&#39;&#39;, 2)&#39;<br>
HK&gt; into a method in DBXBackendFacility and overwrite it in<br>
HK&gt; DBXMySQL4Facility.<br>
<br>
MMP&gt; I would like not to tauch DBXBackendFacility or other<br>
MMP&gt; things of the core. Is it possible it to be only in<br>
MMP&gt; MMP&gt; DBXMySQL4Facility ?<br>
<br></blockquote><div><br><br>

I think I am not understanding. What I need an example. What I suggest
you is you send me your changeset so that I can see it and try to run
it in different backends.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have to touch all these messages in the png.<br>
 </blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The options I see:<br>
- Changing all these strings to use double quotes around &quot;Something&quot;<br>
  and &quot;Nothing&quot; and hope that in SQL &#39;&#39; and &quot;&quot; are interchangeable for<br>
  all platforms.<br></blockquote><div><br>That&#39;s why I didn&#39;t want to touch everything. I don&#39;t want to break others backends. <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

- Changing these Strings only after a check for the Class of the<br>
  faciility<br>
- Instead of using String literals return the Strings by a method.<br>
  This method could reside in DBXBaseTest and do something like:<br>
  facility class = DBXMySQL4Facility ifTrue: [....] ifFalse: [...]<br>
  Or this method resides in DBXBackendFacility and uses polymorhism to<br>
  return the appropriate string.<br>
<br></blockquote><div><br>In those options I like the last one, the one of polymorhism. However, as I told you, send me the changeset so that I can test it here. <br><br>Even better, what would be fantastic is you do a new test that just tests that. So, you send me that test and I just run it for all backends on all OS.<br>
What do you think about this? It is easy and helpful.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Happy for any other suggestion you make and I will follow your<br>
suggestion as it is my goal to have MySQL4 and tests included into<br>
SqueakDBX.<br>
<br></blockquote><div><br>Yeah. Me too. The goal is to have all the tests running in all backends and OS. <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Actually I don&#39;t understand (meaning I want to be educated about) your<br>
objection. In my view it will be a simple getter and IMO it&#39;s a<br>
natural function for DBXBackendFacility to provide different SQL<br>
strings for different backends.<br>
<br></blockquote><div><br>Come on!!! I am still an Smalltalk newbie :)   Don&#39;t be afraid, just ask, advice or whatever.<br><br>I think that&#39;s is a nice solution. But I would like to be sure that you changes don&#39;t work with others backends. Because perhaps they work and we are doing all of this without sense.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But then I&#39;m no IT person but an electronic engineer so maybe it&#39;s<br>
just a lack of understanding on my side.<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>no :)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<div class="h5">
Cheers,<br>
<br>
Herbert                            mailto:<a href="mailto:herbertkoenig@gmx.net">herbertkoenig@gmx.net</a></div></div><br>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div><br>