<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Query page size bug]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4634&amp;type=atom" />
	<updated>2014-01-02T13:01:41Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4634</id>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18895#p18895" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2014-01-02T13:01:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18895#p18895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18871#p18871" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-12-30T18:04:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18871#p18871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18870#p18870" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-12-30T17:36:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18870#p18870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18866#p18866" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-12-30T09:34:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18866#p18866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18865#p18865" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17873</uri>
			</author>
			<updated>2013-12-30T09:15:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18865#p18865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18862#p18862" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-12-30T07:34:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18862#p18862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18861#p18861" />
			<content type="html"><![CDATA[<p><a href="https://frontaccounting.com/fawiki/index.php?n=Help.DisplaySetup"><strong>Wiki</strong></a>-ed it with screenshot.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-12-30T05:39:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18861#p18861</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18860#p18860" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-12-30T05:06:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18860#p18860</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18855#p18855" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17873</uri>
			</author>
			<updated>2013-12-30T00:15:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18855#p18855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18853#p18853" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mfaa98]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17843</uri>
			</author>
			<updated>2013-12-29T22:30:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18853#p18853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18852#p18852" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2013-12-29T18:55:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18852#p18852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18848#p18848" />
			<content type="html"><![CDATA[<p><strong>Page Size</strong> should be either <strong>A4</strong> or <strong>Letter</strong></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-12-29T18:27:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18848#p18848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Query page size bug]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18845#p18845" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dvarsani]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16332</uri>
			</author>
			<updated>2013-12-29T11:45:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18845#p18845</id>
		</entry>
</feed>
