<div dir="ltr">Hi,<div><br></div><div>Apparently, the way to go is to make the arguments explicit. Therefore, rather than writing:</div><div><br></div><div><div><span style="white-space:pre">Sql.easy_insertOrUpdate [[cellTableGroupForeignKeyColumnName = _,</span></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span>  cellTableRowForeignKeyColumnName = _,</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span>  cellTableDateColumnName = _]]</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                       </span>cellTable</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                      </span>({cellTableGroupForeignKeyColumnName = groupId,</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>  cellTableRowForeignKeyColumnName = rowId,</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                   </span>  cellTableDateColumnName = date} ++ contents)</div></div><div><br></div><div>one has to write:</div><div><br></div><div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>@Sql.easy_insertOrUpdate</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span> [[cellTableGroupForeignKeyColumnName = _, cellTableRowForeignKeyColumnName = _, cellTableDateColumnName = _]]</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span> !</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span> _</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span> cellTableOtherColumnsInjectable</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">       </span> _</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span> cellTableOtherColumnsFolder</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span> cellTable</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">     </span> ({cellTableGroupForeignKeyColumnName = groupId, cellTableRowForeignKeyColumnName = rowId, cellTableDateColumnName = date} ++ contents)</div></div><div><br></div><div>Sincerely,</div><div>Saulo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 28, 2016 at 5:47 PM, Saulo Araujo <span dir="ltr"><<a href="mailto:saulo2@gmail.com" target="_blank">saulo2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br>I am trying to use the function Sql.easy_insertOrUpdate in the code <a href="https://github.com/saulo2/timesheet-upo/blob/master/timeSheet.ur" target="_blank">https://github.com/saulo2/<wbr>timesheet-upo/blob/master/<wbr>timeSheet.ur</a> but I am getting the following compiler errors:<br><br>/home/saulo/Programming/<wbr>projects/timesheet-upo/<wbr>timeSheet.ur:103:1: (to 105:35) Can't resolve type class instance<br>Class constraint:  $(map sql_injectable S.cellTableOtherColumns)<br>/home/saulo/Programming/<wbr>projects/timesheet-upo/<wbr>timeSheet.ur:103:1: (to 105:35) Can't resolve type class instance<br>Class constraint:  Top.folder[[Type]] S.cellTableOtherColumns<br><br>I faced similar errors before, and I got rid of them by declaring the type class instances in the SCHEMA signature. However, doing the same did not work for <br><br>$(map sql_injectable S.cellTableOtherColumns) <br><br>and <br><br>folder cellTableOtherColumns.<br><br>Does anyone know why?<br><br></div>Sincerely,<br></div>Saulo<br></div>
</blockquote></div><br></div>