<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=214819&amp;view=findpost&amp;p=1798718</guid>
        <pubDate>Tue, 11 Dec 2007 08:27:39 +0000</pubDate>
        <title>firebird</title>
        <link>https://forum.sources.ru/index.php?showtopic=214819&amp;view=findpost&amp;p=1798718</link>
        <description><![CDATA[sten_11: Всем спасибо ошибка была вот в чём<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[0]-&#62;AsDateTime = &nbsp;NumberDeviceFor_massa_1_2_format; //NumberDeviceFor_massa_1_2_format - это инт</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[1]-&#62;AsInteger &nbsp;= &nbsp;iStartX;//iStartX-это дата</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
-&gt;value и никогда не ошибёшся]]></description>
        <author>sten_11</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=214819&amp;view=findpost&amp;p=1798710</guid>
        <pubDate>Tue, 11 Dec 2007 08:22:17 +0000</pubDate>
        <title>firebird</title>
        <link>https://forum.sources.ru/index.php?showtopic=214819&amp;view=findpost&amp;p=1798710</link>
        <description><![CDATA[MIF: Integer, похоже, 16битный. Передаваемое значение 39427 больше максимально допустимого значения 32767. Ищи 32битный инт.]]></description>
        <author>MIF</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=214819&amp;view=findpost&amp;p=1798669</guid>
        <pubDate>Tue, 11 Dec 2007 07:49:45 +0000</pubDate>
        <title>firebird</title>
        <link>https://forum.sources.ru/index.php?showtopic=214819&amp;view=findpost&amp;p=1798669</link>
        <description><![CDATA[sten_11: Здравствуйте. Был запрос<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">IBSQL1-&#62;SQL-&#62;Add( &quot;execute procedure INSERT_B (:DATETIMEP,:KOD_DOZAP,:MASSAP,:NUMBER_BUNKER,:FLAGP)&quot;);</div></ol></div></div></div></div><br>
<br>
Немного изменил таблицу, соответственно и процедуру. Стало<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">IBSQL1-&#62;SQL-&#62;Add( &quot;execute procedure INSERT_B (:number_bunkerp, :DATETIMEP, :KOD_DOZAP, :MASSAP, :zad_massap, :flag_errorp, :flag_countp)&quot;);</div></ol></div></div></div></div><br>
<br>
Но перестало выполняться, пишет Dynamic SQL error SQL error code =-303 conversion error from string &quot;39427&quot;<br>
Я ставил тычки после <br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">IBSQL1-&#62;SQL-&#62;Clear();</div><div class="code_line">//IBSQL1-&#62;SQL-&#62;Add( &quot;execute procedure INSERT_B (:DATETIMEP,:KOD_DOZAP,:MASSAP,:NUMBER_BUNKER,:FLAGP)&quot;);</div><div class="code_line">IBSQL1-&#62;SQL-&#62;Add( &quot;execute procedure INSERT_B (:number_bunkerp, :DATETIMEP, :KOD_DOZAP, :MASSAP, :zad_massap, :flag_errorp, :flag_countp)&quot;);</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[0]-&#62;AsDateTime = &nbsp;NumberDeviceFor_massa_1_2_format;</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[1]-&#62;AsInteger &nbsp;= &nbsp;iStartX;</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[2]-&#62;Value &nbsp; &nbsp; &nbsp;= &nbsp;KODDOZA;</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[3]-&#62;Value &nbsp; &nbsp; &nbsp;= &nbsp;massa;</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[4]-&#62;AsInteger &nbsp;= &nbsp;zad_massa;</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[5]-&#62;AsInteger &nbsp;= &nbsp;flag_err;</div><div class="code_line">IBSQL1-&#62;Params-&#62;Vars[6]-&#62;AsInteger &nbsp;= &nbsp;flag_count;</div><div class="code_line">IBSQL1-&#62;ExecQuery(); //Вот эта строка не хочет выполняться</div><div class="code_line">IBTransaction1-&#62;CommitRetaining();</div></ol></div></div></div></div><br>
<br>
На что обратить внимание ????]]></description>
        <author>sten_11</author>
        <category>Delphi: Базы данных</category>
      </item>
	
      </channel>
      </rss>
	