<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Query page size bug]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4634</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4634&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Query page size bug.]]></description>
		<lastBuildDate>Thu, 02 Jan 2014 13:01:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18895#p18895</link>
			<description><![CDATA[<p>Hi<br />I sorted this issue with updating my column query_size to SMALLINT.<br />My users prefer viewing 200 lines per page (less pages to view) rather than clicking &quot;Next&quot; for 20/25 times. These days everybody uses mouse wheel to scroll up/down. I think we should change this in FA&#039;s new version.<br />Thanks</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Thu, 02 Jan 2014 13:01:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18895#p18895</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18871#p18871</link>
			<description><![CDATA[<p>Updated in <a href="https://github.com/apmuthu/frontaccounting/commit/5d3a64a1880df01af314ff8d33de01ecfad44250">my personal GitHub Repo</a>.</p><p>For those not intending to wait for FA v2.4, grab the code from <a href="https://github.com/apmuthu/frontaccounting/archive/master.zip"><strong>here</strong></a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 30 Dec 2013 18:04:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18871#p18871</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18870#p18870</link>
			<description><![CDATA[<div class="codebox"><pre><code>ALTER TABLE `0_users` CHANGE `query_size` `query_size` TINYINT(1) UNSIGNED NOT NULL DEFAULT 10; </code></pre></div><p>Do that for each of the companies (replacing the table prefix &quot;0_&quot; with the appropriate one for each company) and for all Charts of Accounts in the <strong>sql</strong> folder.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 30 Dec 2013 17:36:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18870#p18870</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18866#p18866</link>
			<description><![CDATA[<p>Will do that for next major, 2.4 </p><p>For those who need this now, please run an ALTER command on the user table.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 30 Dec 2013 09:34:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18866#p18866</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18865#p18865</link>
			<description><![CDATA[<p>Well... Just make it an unsigned TINYINT, then. That really <strong>should</strong> be enough for anybody. (I would have thought 7 bits would be enough, but...)</p><p>There is no reason to allow negative values for any &quot;size&quot;, and it shouldn&#039;t affect data already stored in the database.</p>]]></description>
			<author><![CDATA[null@example.com (tm)]]></author>
			<pubDate>Mon, 30 Dec 2013 09:15:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18865#p18865</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18862#p18862</link>
			<description><![CDATA[<p>Thanks apmuthu. <br />We nevewr thought that the Query size should be that big. with 127 items on page you don&#039;t see all lines. In my opinion, suitable values would be 10-30 or 40 rows.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 30 Dec 2013 07:34:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18862#p18862</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18861#p18861</link>
			<description><![CDATA[<p><a href="https://frontaccounting.com/fawiki/index.php?n=Help.DisplaySetup"><strong>Wiki</strong></a>-ed it with screenshot.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 30 Dec 2013 05:39:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18861#p18861</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18860#p18860</link>
			<description><![CDATA[<p>The current version on the Official GitHub is still TINYINT for query_size and is VARCHAR(20) for page_size.<br /></p><div class="codebox"><pre><code>CREATE TABLE IF NOT EXISTS `0_users` (
  `id` smallint(6) NOT NULL auto_increment,
  `user_id` varchar(60) NOT NULL default &#039;&#039;,
  `password` varchar(100) NOT NULL default &#039;&#039;,
  `real_name` varchar(100) NOT NULL default &#039;&#039;,
  `role_id` int(11) NOT NULL default &#039;1&#039;,
  `phone` varchar(30) NOT NULL default &#039;&#039;,
  `email` varchar(100) default NULL,
  `language` varchar(20) default NULL,
  `date_format` tinyint(1) NOT NULL default &#039;0&#039;,
  `date_sep` tinyint(1) NOT NULL default &#039;0&#039;,
  `tho_sep` tinyint(1) NOT NULL default &#039;0&#039;,
  `dec_sep` tinyint(1) NOT NULL default &#039;0&#039;,
  `theme` varchar(20) NOT NULL default &#039;default&#039;,
  `page_size` varchar(20) NOT NULL default &#039;A4&#039;,
  `prices_dec` smallint(6) NOT NULL default &#039;2&#039;,
  `qty_dec` smallint(6) NOT NULL default &#039;2&#039;,
  `rates_dec` smallint(6) NOT NULL default &#039;4&#039;,
  `percent_dec` smallint(6) NOT NULL default &#039;1&#039;,
  `show_gl` tinyint(1) NOT NULL default &#039;1&#039;,
  `show_codes` tinyint(1) NOT NULL default &#039;0&#039;,
  `show_hints` tinyint(1) NOT NULL default &#039;0&#039;,
  `last_visit_date` datetime default NULL,
  `query_size` tinyint(1) default &#039;10&#039;,
  `graphic_links` tinyint(1) default &#039;1&#039;,
  `pos` smallint(6) default &#039;1&#039;,
  `print_profile` varchar(30) NOT NULL default &#039;1&#039;,
  `rep_popup` tinyint(1) default &#039;1&#039;,
  `sticky_doc_date` tinyint(1) default &#039;0&#039;,
  `startup_tab` varchar(20) NOT NULL default &#039;&#039;,
  `inactive` tinyint(1) NOT NULL default &#039;0&#039;,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=MyISAM  AUTO_INCREMENT=2 ;</code></pre></div><p>The column <strong>query_size</strong> has not changed since FA v2.1 as seen from:<br /></p><div class="codebox"><pre><code>File: sql/alter2.1.sql
Line 74: ALTER TABLE `0_users` ADD `query_size` TINYINT(1) DEFAULT &#039;10&#039;;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 30 Dec 2013 05:06:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18860#p18860</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18855#p18855</link>
			<description><![CDATA[<p>On my system (2.3.15) the query_size column is defined as a TINYINT, which is a signed 8 bit integer. So, 128 would indeed be outside its range.</p><p>Since mfaa98 didn&#039;t have this problem, I guess it&#039;s been fixed in a later version. Easiest solution would be upgrading. (I&#039;m just waiting for the new year, before I do that.)</p><p>If that&#039;s not an option, I suggest you google &quot;mysql alter table&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (tm)]]></author>
			<pubDate>Mon, 30 Dec 2013 00:15:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18855#p18855</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18853#p18853</link>
			<description><![CDATA[<p>dvarsani, i ran your sql query in my test database and it ran without problem. may be something wrong with your table structure?</p>]]></description>
			<author><![CDATA[null@example.com (mfaa98)]]></author>
			<pubDate>Sun, 29 Dec 2013 22:30:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18853#p18853</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18852#p18852</link>
			<description><![CDATA[<p>I think you have misunderstood my error. It is the field in preferences which takes number of rows value to displayed for on-screen transaction report ie custom transaction inquiry.</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Sun, 29 Dec 2013 18:55:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18852#p18852</guid>
		</item>
		<item>
			<title><![CDATA[Re: Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18848#p18848</link>
			<description><![CDATA[<p><strong>Page Size</strong> should be either <strong>A4</strong> or <strong>Letter</strong></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 29 Dec 2013 18:27:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18848#p18848</guid>
		</item>
		<item>
			<title><![CDATA[Query page size bug]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18845#p18845</link>
			<description><![CDATA[<p>Hi<br />I am getting this error when I am trying update Query page size above 127.</p><p>DATABASE ERROR : <br />At file C:\Frontaccounting\admin\db\users_db.inc:65:<br />could not update user display prefs for 2<br />error code : 1264<br />error message : Out of range value for column &#039;query_size&#039; at row 1<br />sql that failed was : UPDATE 0_users SET prices_dec=&#039;2&#039;,qty_dec=&#039;2&#039;,rates_dec=&#039;4&#039;,percent_dec=&#039;2&#039;,date_format=&#039;1&#039;,date_sep=&#039;0&#039;,tho_sep=&#039;0&#039;,dec_sep=&#039;0&#039;,print_profile=&#039;&#039;,theme=&#039;cool&#039;,page_size=&#039;A4&#039;,language=&#039;C&#039;,startup_tab=&#039;orders&#039;,show_gl=&#039;1&#039;,show_codes=&#039;1&#039;,show_hints=&#039;1&#039;,rep_popup=&#039;1&#039;,graphic_links=&#039;1&#039;,sticky_doc_date=&#039;0&#039;,query_size=&#039;200&#039; WHERE id=&#039;2&#039;</p>]]></description>
			<author><![CDATA[null@example.com (dvarsani)]]></author>
			<pubDate>Sun, 29 Dec 2013 11:45:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18845#p18845</guid>
		</item>
	</channel>
</rss>
