IRC logs of #mantishelp for Wednesday, 2010-08-25

*** Joins: daryn (~daryn@h188.150.16.98.dynamic.ip.windstream.net)00:20
*** Quits: siebrand (~beis@sm.xs4all.nl) ()01:31
*** Joins: giallu (~giallu@fedora/giallu)02:00
CIA-100Mantisbt: daryn * rd5a59a4cdebb /core/collapse_api.php: Fix missing space causing validation error.02:05
CIA-100Mantisbt: daryn * r5dec982e75a1 /core/collapse_api.php: Remove extra \".02:05
CIA-100Mantisbt: daryn * r6083666774c4 /core/html_api.php: Add missing closing tags.02:06
CIA-100Mantisbt: daryn * re087425c4212 / (4 files in 4 dirs): Bug #11826 - Remove inline javascript for bug-jump field and put it in common.js. Add02:06
foobotBug 11826 - dhx - open - assigned02:06
foobotRemove all inline JavaScript from MantisBT (use external scripts instead) - http://www.mantisbt.org/bugs/view.php?id=1182602:06
CIA-100Mantisbt: daryn * r94c2e872d0c0 /core/html_api.php: Use class rather than id for the menu links. They may appear more than once02:06
CIA-100Mantisbt: daryn * r6b5e037ced1d / (4 files in 4 dirs): Bug #11826, Bug #11995, Fix invalid html in the view all bug filter. Add divs, classes and id's02:06
foobotBug 11995 - brandonjackson - fixed - assigned02:06
CIA-100Mantisbt: daryn * rc0d2239266ed / (core/print_api.php css/default.css): Move styles for recently-visited into css. remove html style elements.02:06
CIA-100Mantisbt: daryn * r99a9d10435e7 /view_all_inc.php: remove border. It is not a valid tr attribute.02:06
foobotAdd CSS IDs to html elements for styling and javascript access. - http://www.mantisbt.org/bugs/view.php?id=1199502:06
*** Quits: daryn (~daryn@h188.150.16.98.dynamic.ip.windstream.net) (Quit: Ex-Chat)02:13
*** Joins: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl)02:29
*** Quits: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl) (Changing host)02:29
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:29
*** Joins: Github (~Github@sh1-ext.rs.github.com)02:30
Githubmantisbt: master Daryn Warriner * d5a59a4 (1 files in 1 dirs): Fix missing space causing validation error.02:30
Githubmantisbt: master Daryn Warriner * 5dec982 (1 files in 1 dirs): Remove extra \".02:30
Githubmantisbt: master Daryn Warriner * 94c2e87 (1 files in 1 dirs): Use class rather than id for the menu links.  They may appear more than once ...02:30
Githubmantisbt: master Daryn Warriner * 6083666 (1 files in 1 dirs): Add missing closing tags.02:30
Githubmantisbt: master Daryn Warriner * e087425 (4 files in 4 dirs): Bug #11826 - Remove inline javascript for bug-jump field and put it in common.js.  Add ...02:30
foobotBug 11826 - dhx - open - assigned02:30
Githubmantisbt: master Daryn Warriner * c0d2239 (2 files in 2 dirs): Move styles for recently-visited into css.  remove html style elements.02:30
Githubmantisbt: master Daryn Warriner * 99a9d10 (1 files in 1 dirs): remove border. It is not a valid tr attribute.02:30
Githubmantisbt: master Daryn Warriner * 6b5e037 (4 files in 4 dirs): Bug #11826, Bug #11995, Fix invalid html in the view all bug filter.  Add divs, classes and id's ...02:30
Githubmantisbt: master commits 0e504c8...6b5e037 - http://bit.ly/angOFM02:30
foobotRemove all inline JavaScript from MantisBT (use external scripts instead) - http://www.mantisbt.org/bugs/view.php?id=1182602:30
*** Parts: Github (~Github@sh1-ext.rs.github.com)02:30
foobotBug 11995 - brandonjackson - fixed - assigned02:30
foobotAdd CSS IDs to html elements for styling and javascript access. - http://www.mantisbt.org/bugs/view.php?id=1199502:30
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Client Quit)02:33
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 265 seconds)02:33
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:35
*** Joins: giallu (~giallu@fedora/giallu)02:46
*** Joins: davidinc_ (d5374b7b@gateway/web/freenode/ip.213.55.75.123)02:54
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 240 seconds)03:11
*** Joins: ynyr (~ynyr@cpc1-mapp5-0-0-cust769.12-4.cable.virginmedia.com)03:53
*** Joins: Rixie (~Rixie@0x4dd7390e.adsl.cybercity.dk)04:01
davidinc_hi04:31
davidinc_still don't have an answer about ManTweet plugin?04:31
*** Joins: istvanb (d917e473@gateway/web/freenode/ip.217.23.228.115)04:40
istvanbhello04:40
istvanbanybody who has experience with the summary graphs?04:40
istvanbI have some global categories (like: bug, feature etc) and also some custom made based on project (like: request credentials, request new users etc).04:42
istvanbWhen I go to the summary page categories subpage, only these custom categories show up and the global categories are not04:42
*** Joins: Al_Chapone (~chatzilla@ATuileries-152-1-23-93.w82-123.abo.wanadoo.fr)05:21
*** Quits: Al_Chapone (~chatzilla@ATuileries-152-1-23-93.w82-123.abo.wanadoo.fr) (Quit: ChatZilla 0.9.86 [Firefox 3.6.8/20100722155716])06:01
*** Joins: fanno (~Morten@90.184.93.233)06:01
*** Quits: istvanb (d917e473@gateway/web/freenode/ip.217.23.228.115) (Quit: Page closed)06:46
*** Joins: josephross_ (~josephros@cpc1-nrwh2-0-0-cust886.4-4.cable.virginmedia.com)06:57
josephross_I have a question if anyone is around06:59
josephross_i have noticed some people have a irc mantis announcement feed06:59
josephross_and was wondering how this was done06:59
josephross_ive looked at the rss feed but it seems to only give the description07:00
josephross_not new events07:00
*** Quits: davidinc_ (d5374b7b@gateway/web/freenode/ip.213.55.75.123) (Ping timeout: 252 seconds)07:34
*** Joins: Al_Chapone (~chatzilla@ATuileries-152-1-23-93.w82-123.abo.wanadoo.fr)08:12
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)08:57
*** Joins: giallu (~giallu@fedora/giallu)09:07
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)09:08
*** Joins: davidinc__ (d5374b7b@gateway/web/freenode/ip.213.55.75.123)09:32
*** Quits: dhx_m (~anonymous@c122-107-170-247.eburwd5.vic.optusnet.com.au) (Ping timeout: 276 seconds)10:13
*** Quits: josephross_ (~josephros@cpc1-nrwh2-0-0-cust886.4-4.cable.virginmedia.com) (Quit: www.vces.net)10:32
*** Joins: fanno (~b3g@193.3.95.240)10:41
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)10:42
*** Quits: davidinc__ (d5374b7b@gateway/web/freenode/ip.213.55.75.123) (Ping timeout: 252 seconds)11:49
*** Quits: Al_Chapone (~chatzilla@ATuileries-152-1-23-93.w82-123.abo.wanadoo.fr) (Quit: ChatZilla 0.9.86 [Firefox 3.6.8/20100722155716])12:06
*** Parts: Rixie (~Rixie@0x4dd7390e.adsl.cybercity.dk)13:09
*** Quits: micahg (~micah@ubuntu/member/micahg) (Read error: Operation timed out)13:20
*** Joins: siebrand (~beis@sm.xs4all.nl)13:26
*** Joins: micahg (~micah@ubuntu/member/micahg)14:36
CIA-100Mantisbt: daryn * r839f1d68bc77 / (7 files in 5 dirs): Fix #6626 - Add text area custom field type. Add column to handle long16:10
*** Joins: paulr (~IceChat09@2001:470:9310:aaaa:984a:9ef5:e044:eebc)16:12
* paulr pokes daryn16:12
daryn:)16:12
daryni was tired of waiting16:12
paulrI do want to revert that and make sure we're doing something that works on all our db's16:13
darynit shouldn't be a problem at all16:13
paulrwell, we are adding 'text' why?16:13
darynit's the same as every other text field in the db.16:14
paulryes, which I think might cause problems having it in that table16:14
darynno it wont16:14
paulryou've tested mssql?16:14
darynno16:15
darynbut we've been talking about this for over a year now...maybe two and still no resolution16:15
paulrsure16:15
paulrbut randomnly dumping a field in without testing it isn't a solution16:16
darynit isn't random16:16
paulrsure it is - you've not tested it on mssql16:16
darynmssql bah16:16
paulrpersonally16:16
paulrif we have a data type mssql supports16:16
paulrwe dont need text/value16:16
paulrand can simplify that code16:17
paulralternatively, we probably need a seperate table16:17
paulrlike we do with bugtext stuff16:17
darynwhy would it need a different table?16:17
giallunot that I care about mssql but16:18
gialluif we're breaking it that's not good. the question is16:18
gialluare we breaking it?16:18
paulrwell16:19
darynit shouldn't be breaking it. the only issue would be does it use too much disk space to have null value text fields16:19
paulriirc, reason we wanted a seperate field for long text was for db's like mssql...16:19
paulrfor mysql we could just use the existing value field16:19
paulrand change the data type16:19
paulrsame goes for postgres16:19
giallupaulr, that was what, 5 years ago?16:20
giallumaybe mssql is better now16:20
paulrmy point is16:20
paulradding an extra column to a db table to support something in mssql16:20
paulrwithout testing it in mssql or looking at what mssql now supports16:20
paulris a bit silly ;)16:20
gialluyeah, I'd much prefer we drop mssql :)16:21
paulrso either we revert that commit and test mssql16:21
paulror we keep that commit16:21
paulrtest mssql and decide if we can go back to just having one column16:21
paulrand run a migration script on the data16:21
darynyes but i've asked this exact question on here multiple times and you've given me different answers.  First I suggested we just change the field but you didn't want to do that.  Then i suggested either a new table or a new field and couldn't get a straight answer on that.  I don't have an mssql system and I'm not going to build one which is why i've asked paulr on multiple occasions to confirm this issue for me16:22
darynthis is a fairly frequently requested feature and this solution seems reasonable to me.16:23
gialludaryn, see. you've got the worng medium. avoid asking here about design decisions16:23
giallumailing list has memory :)16:23
darynwe had a discussion on the mailing list too I believe. that was quite some time back though.16:23
gialluwow. I forgot about it...16:24
gialluand it's not we have that much discussions there16:24
paulri'll revert that commit locally16:27
paulrfix the mssql stuff that dhx broke16:27
paulrthen reapply the commit16:27
darynsounds fabulous to me.  my evil plan appears to be working16:27
paulrheh16:27
paulrI just wish out installer actaully worked ;p16:29
darynworks for me...what's the issue?16:29
gialludaryn, anyway, you have all my sympathy. this is the kind of things that spoiled my willingness to devote time on stuff16:30
paulrgiallu: well, it just requires testing16:31
daryn:) well, i figured i'd get a rise out of paulr by just committing it.  surprised it took him 2 minutes to respond16:31
paulrand to commit db schema changes without testing16:31
paulrscrews us over as we can't reverse them16:31
paulri.e. to reverse this commit now if we decide we dont need it16:32
paulrwe need to migrate data to old column16:32
paulrthen delete the new column16:32
paulror just delete the new column (and hope no one starts following trunk)16:33
darynthat should only be true if we released with it in and then reversed it.16:33
paulrdev's running test builds will get the schema change16:33
paulrand have their config updated16:33
paulrwe can just delete the field16:33
paulrwithout caring about data (on basis it's not in a release)16:33
paulrbut we can't delete schema changes back out16:34
darynmm..why not?16:34
paulrwhen you update your db, it'll update config16:34
paulrso anyone running test instances16:34
paulror dev's16:34
darynright but test instances should be fresh every time anyway16:35
paulrsigh16:48
darynpaulr: yes?16:51
paulrarray(6) { [0]=>  string(16) "database_version" [1]=>  string(1) "0" [2]=>  string(1) "0" [3]=>  string(1) "1" [4]=>  string(2) "64" [5]=>  string(2) "90" }16:55
*** Quits: fanno (~b3g@193.3.95.240) (Read error: Connection reset by peer)16:55
paulrspot the flaw16:55
paulrdaryn: seems adodb is broken :P17:02
paulrthere's a surprise :)17:02
darynwhat's broken?17:02
paulr the flaw17:02
paulr[10:02.28] <paulr> dary17:02
paulrarray(6) { [0]=>  string(16) "database_version" [1]=>  string(1) "0" [2]=>  string(1) "0" [3]=>  string(1) "1" [4]=>  string(2) "64" [5]=>  string(2) "90" }17:02
paulrshould be field names17:02
paulrnot int's ;)17:02
darynah, yes we've run into that before17:03
daryni think i switched from mysql to mysqli and it stopped doing that17:03
darynfor mysql was actually sending both numeric indexes and field names17:04
darynSo here appears to be the bad news: The text in row option will be removed in a future version of SQL Server. Avoid using this option in new development work, and plan to modify applications that currently use text in row. We recommend that you store large data by using the varchar(max), nvarchar(max), or varbinary(max) data types. To control in-row and out-of-row behavior of these data types, use the large value types out of r17:10
darynow option.17:10
paulryes, I know17:14
daryngrr...17:15
paulr?17:15
darynjust frustrating17:15
paulrwhy? :)17:15
darynbecause i've asked this question several times and not gotten that answer.17:16
paulrwe've pasted that text into here before ;p17:16
daryni don't recall that one but whatever17:17
paulrpaul__ntext, text, and image data types will be removed in a future version of Microsoft SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max), varchar(max), and varbinary(max) instead.20:4117:17
paulrdarynyeah, i'm looking at that too...17:17
paulr:)17:17
darynok17:18
paulranyway, issue is more, I can't get mssql to work at all atm17:18
paulrheh17:18
paulrwe also need to decide if we support db2/oracle17:18
paulras17:18
daryndoesn't matter for this issue really as we'll have a bunch of fields to change if that's the case17:18
paulri've never managed to either of those db's set up in a way to dev with17:18
paulrtbh, i'm all for supporting just: a) mssql, b) pgsql, c) mysql d) sqlite17:19
daryneven the config  value field is a longtext17:19
paulr(with sqlite being more for 'dev')17:19
paulrbut the reason I dont like your commit is17:19
paulrthe reason youv'e added it is because the custom field value is too short17:19
darynright i get that but that's what i tried to fix before and you told me not to do that17:20
paulrif we conclude that we dont care about db2/oracle as no dev's can actually get it to run17:20
darynmaking it one long field17:20
paulryes17:20
paulras converting varchar->text - with text you couldn't use it in same way in where clauses17:20
darynso you're saying use varchar(max) for the value field and only have one field?17:23
paulractually, i'm saying we need to work out wtf we support17:24
paulr:)17:24
paulrtake db217:24
paulras far as I understand17:24
paulryou can do varchar/long varchar up to 8000 chars or something17:24
paulrthen need to use CLOB's17:24
paulrnow you see17:26
paulrXL goes to 'TEXT'17:26
darynright, and we have a bunch of 'XL'17:27
paulrat least some versions of mssql doesn't allow 'text' columns in a where clause or a group by clause17:27
darynso this one field is not the issue17:27
paulrso17:29
darynright..but text is going away in mssql anyway so who cares. we still have to figure out what to do with all the 'XL' fields17:29
paulryes17:29
paulrbut your only duplicating the value/text columns in the custom field table to deal with the mssql datatype issue17:29
paulrand I suspect your commit has probably just broken some sort of filtering in mssql17:30
paulr(or at least potentially has)17:30
paulrPersonally, I want to drop db2/oracle support as afaict, NONE of the core dev's run it17:31
daryni'm ok with that17:31
paulrand so far i've personally failed to install db2/oracle on windows17:31
darynnot that it matters17:31
paulrand get it to work properly17:31
paulri'd then like to drop 'mssql' support17:32
paulrand add one or both of odbc_mssql and sqlsrv17:32
paulrand to do the above, we need to drop adodb17:33
paulras people don't like us having to patch adodb17:33
darynk. so how long is it going to take you to do that?17:36
paulrwell, question is whether everyone agrees on the db2/oracle thing17:37
paulrfor now at least17:37
darynso...either way we need to not use text.  if we keep mssql, it's deprecated. If we don't use mssql we don't need it, right?17:39
paulrdb2/oracle I think need it17:39
darynoh good grief17:39
paulrdb2 has 8000 char limit on varchar17:39
darynew...looks like 400017:41
paulrphp db2_* functions are part of pecl17:43
paulrNumber of releases: 3217:46
paulrTotal downloads: 54,24017:46
paulrso not that many people downloading it from pecl17:47
darynyou've got no argument from me against dropping db2 or oracle.  I need to decide how to proceed with cf.  It's a requested feature and one that I need.17:49
darynso, if we keep mssql text won't work. if we keep oracle/db2 text has to work. so one or both of them have to go, right?17:51
paulrnot necessarily17:53
paulras we could adjust what adodb maps XL to for mssql17:53
paulr(which to all intents and purposes involves setting up our own datadict17:53
darynok...17:54
darynso we can leave the field as XL until we decide what we're doing...then the question is why one field, two fields, or two separate tables is better17:55
paulrthe answer of mssql(with varchar(max)), mysql and pgsql I believe is one field17:56
paulrwith 2 fields/separate tables being historically better17:56
paulrfor oracle/db2 no idea17:56
paulrhttp://richardlees.blogspot.com/2010/07/varcharmax-performance-in-sql-server.html17:57
darynwhy though?  just because we've always done it that way?  is there really a performance difference?  In this case you will always be selecting only the field with the value.  the other field will be ignored.17:57
daryndoes it still slow the query down or use more memory?17:57
paulrapparently: 1. Adding a Text Data type / Varchar (MAX) to a table removes the ability for online re-indexing17:59
paulrhttp://geekswithblogs.net/johnsPerfBlog/archive/2008/04/16/ntext-vs-nvarcharmax-in-sql-2005.aspx18:00
paulrBy default NTEXT stores the text value in the LOB structure and the table structure just holds a pointer to the location in the LOB where the text lives.18:01
paulrConversely, the default setting for NVARCHAR(MAX) is to store its text value in the table structure, unless the text is over 8,000 bytes at which point it behaves like an NTEXT and stores the text value in the LOB , and stores a pointer to the text in the table.18:01
paulrtbh, I thought that's what ntext did ;P18:01
paulralso see http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4de94284-cfe2-4a47-9863-8a2bbce4fb0718:03
paulrI guess the question is for us18:03
darynblah18:03
paulrif you consider that most of our text fields are probably <800018:03
paulrwhether nvarchar(max) is better for our workload :)18:03
daryni think that would be a very assessment to make.  I'd bet we have multiple custom fields with lots records > 800018:04
paulrwell I was thinking bugnotes and whatever else we have as text18:05
darynright18:05
paulri.e. 8000 characters is probably about 1000 words18:05
paulrthat's like a side or two of A4 right? :)18:05
darynabout 1600 words18:06
darynno idea about A4 :P18:06
darynmaybe two sides.  i'd agree way more than most fields will need18:06
paulranyway...18:07
paulrcoming back to where we were18:07
paulrwe really need to decide on what we spport18:07
paulrso we can test it18:07
paulrproperly ;)18:07
paulrmoving from where we are now which is basically:18:08
paulra) db218:08
paulrb) oci818:08
paulrc) mysql18:08
paulrd) mysqli18:08
paulre) mssql18:08
paulrf) odbc_mssql18:08
paulrg) pgsql18:08
paulrto:18:08
paulra) mysqli18:08
paulrb) sqlsrv18:08
paulrc) pgsql18:08
paulrd) sqlite18:08
paulrprobably makes some sense18:08
darynyeah...18:09
paulr(Although this MySQL extension is compatible with MySQL 4.1.0 and greater, it doesn't support the extra functionality that these versions provide. For that, use the MySQLi extension.)18:09
paulr(I assume mysql is gradually going to be deprecated in favour of mysqli18:10
darynmaybe why mysql was acting weird for me.18:10
paulriirc, i remember a php dev mailing list discussion about whether they should make mysql_* functions point to mysqli_* ones18:10
darynso...one field or two tables...18:11
daryni like one field18:11
paulrVersions of PHP since 5.3.0 have MySQL support enabled as standard through the use of the mysql, mysqli, and PHP_PDO_MYSQL extensions. Each of these extensions now uses the MySQL Native Driver by default, rather than the MySQL Client Library, libmysql.18:12
paulrat one point i think mysqli was the native driver (might be wrong)18:13
paulranyway18:13
paulrwhat I dont know18:14
paulris whether we need both mysql+mysqli etc18:14
paulrbut looking at my above list18:15
paulrit strikes me we'd dump a lot of old modules18:15
paulruse the newest18:15
paulradd spport for sqlite18:15
paulrand half the number of db's we support18:15
paulrmaking it semi-possible to test all 418:15
darynso, my thought... 1) alter cf.value to Text?  2) install function to cp cf.text to cf.value 3) drop cf.text18:16
darynwe already have XL fields all over the place so if mssql is broken, it's already broken.  then we can upgrade the field if necessary along with all the others18:17
paulrI don't really like the idea of having 'shorttext' custom field + 'longtext' (i.e. what we now have)18:17
paulrand then allowing users to specify a max length on short+long text18:17
darynboth shortext and longtext are variable in most cases so they only use what they use...why does it matter?18:18
paulrwell if 'shorttext+longtext are both infinite length18:19
paulrconfusing18:19
paulrin terms of db engines18:19
paulrNULL. The value is a NULL value.18:19
paulrINTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.18:19
paulrREAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.18:19
paulrTEXT. The value is a text string, stored using the database encoding (UTF-8, UTF-16BE or UTF-16LE).18:19
paulrBLOB. The value is a blob of data, stored exactly as it was input.18:19
paulrThose are sqlite data types18:19
daryni have to go pick up kids...i'll be back in about 45min - an hour. will you still be here?18:19
paulri.e.18:19
paulrfor the most part can be ignored18:19
paulrgoing to bed in 40m probably18:19
paulrso unlikely18:19
paulranyway, if everyone's agreed on forgetting about db2/oracle for now18:20
paulrwe can simplify code and decide18:20
paulrit also makes my life easier to replace db layer - as I can't get db2/oracle to work atm so kinda hard to write a dblayer for :P18:20
paulrenjoy the kids ;)18:20
darynso, is my plan above ok with you?  to simplify to one XL field for now?18:21
darynand migrate rather than reverting since we 'have a db change out there'?18:21
paulrkinda want to think18:21
darynyou said that 6mos ago, yr ago...etc.   I need to move!18:21
paulroriginally, I believe we were thinking of using seperate db tables :)18:22
darynwe went back and forth18:22
darynseems silly and more complicated to me18:22
paulrbut that was partly because we were trying to support mysql 2, sql 7, pgsql 6 as well as mysql 6, mssql 2008 and pgsql 918:22
paulr:)18:22
paulrwe are on 1.3 now18:22
paulri'd be inclined for that to focus on18:23
paulrsql 2008 Express (Free)18:23
darynwhich raises the text problem18:23
paulrpgsql 8 + 918:23
paulrand mysql 518:23
darynk. so...one field18:23
daryni want to do this tonight18:24
paulrwell, we've not checked the mysql/pgsql docs in this discussion :)18:24
darynmysql is fine18:24
darynpgsql not sure18:24
paulrs a great time to beta test the 5.5 release and give feedback to the MySQL engineering team.18:24
paulrmm18:24
darynbut i'd go with fine18:24
daryni'll look tonight18:24
paulrthe biggest issue is queries18:24
paulrwith text, that was where mssql hit grief18:25
darynremembering that if we have to convert XL at all we have to do it anyway18:25
paulri.e. you couldn't group by ntext18:25
darynright18:25
darynwhich you wouldn't normally want to do anyway18:25
paulrneed to check if you can groupby varchar(7999) but not group by varchar(8001)18:25
paulrthere was also something with WHERE clauses18:25
darynalthough where '%xxx%' would be valuable18:25
paulrbut then we've also rewritten filter api a bit18:26
paulr:)18:26
darynand i read two items, one said you can't do it but didn't say which versions, the other said shouldn't do it under certain circumstances18:26
daryngotta go...post additional thoughts you have and I'll read them in a bit18:26
paulrso yea18:26
*** Joins: dhx_m (~anonymous@c122-107-170-247.eburwd5.vic.optusnet.com.au)18:26
paulrlo dhx18:26
dhx_mhey18:27
paulrwww.mantisforge.org/irclogs18:27
darynhi dhx_m read backlogs...i'll be back in an hour18:27
paulrread last hour pls18:27
paulrheh18:27
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Quit: Ex-Chat)18:27
* paulr strokes whip18:27
*** Joins: Github (~Github@sh1-ext.rs.github.com)18:30
Githubmantisbt: master Daryn Warriner * 839f1d6 (7 files in 5 dirs): Fix #6626 - Add text area custom field type.  Add column to handle long ... - http://bit.ly/aIcLnz18:30
*** Parts: Github (~Github@sh1-ext.rs.github.com)18:30
dhx_mread it :)18:39
dhx_mmy comment at the moment is to stick with the databases used by developers18:40
dhx_m-or- setup an automated testing service that tests branches against multiple databases18:40
*** Joins: fanno (~Morten@90.184.93.233)18:43
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 255 seconds)18:56
*** Joins: daryn (~daryn@h59.157.16.98.dynamic.ip.windstream.net)19:10
paulrwb19:13
paulr(6)19:14
darynhola19:16
darynpaulr so...thought about it?  one field or two tables?19:18
paulrI think we are all agreed atm on supported db's19:18
paulraka:19:19
paulr[11:08.28] <paulr> to:19:19
paulr[11:08.35] <paulr> a) mysqli19:19
paulr[11:08.41] <paulr> b) sqlsrv19:19
paulr[11:08.43] <paulr> c) pgsql19:19
paulr[11:08.45] <paulr> d) sqlite19:19
paulrso we should really make some notes on what those db's support/allow19:19
paulrand any obvious oddities19:19
paulrwhat storage engine do we use ?19:23
paulrmyISAM?19:23
darynyes19:24
darynmy point is we have a feature i've personally been waiting to push for about 2 years. the bug reference was from 2006 and XL is currently all over our db.  So, to me, using an existing field type to push a long awaited feature and working out the kinks later makes sense.  We're going to have to work them out in exactly the same manner anyway.19:25
daryni'll concede that deciding whether to use 1 or 2 fields or 2 tables should have been nailed down first19:26
paulrStatic format is the default for MyISAM tables. It is used when the table contains no variable-length columns (VARCHAR, VARBINARY, BLOB, or TEXT)19:26
paulr..19:26
paulrStatic-format tables have these characteristics:19:26
paulrCHAR and VARCHAR columns are space-padded to the specified column width, although the column type is not altered.19:26
* paulr ponders19:26
paulrsurely that didn't mean to put and varchar there19:26
paulranyway19:26
paulrOf the three MyISAM storage formats, static format is the simplest and most secure (least subject to corruption). It is also the fastest of the on-disk formats due to the ease with which rows in the data file can be found on disk:19:26
paulrnow19:27
paulrI guess that means we dont have many(any?) static formats19:27
darynunlikely19:27
darynoh, bug relationship is19:28
darynbug tag is19:29
darynso, at least a couple19:29
darynbut mostly no19:29
paulrraises an interesting question of whether char() would ever be better then varchar() ;p19:35
paulrmysql> describe mantis_custom_field_string_table;19:35
paulr+----------+--------------+------+-----+---------+-------+19:35
paulr| Field    | Type         | Null | Key | Default | Extra |19:35
paulr+----------+--------------+------+-----+---------+-------+19:35
paulr| field_id | int(11)      | NO   | PRI | 0       |       |19:35
paulr| bug_id   | int(11)      | NO   | PRI | 0       |       |19:35
paulr| value    | varchar(255) | NO   |     |         |       |19:35
paulr+----------+--------------+------+-----+---------+-------+19:36
paulr3 rows in set (0.06 sec)19:36
paulranyway19:36
paulrthat table19:36
paulrI have a couple of opinions19:36
paulra) we limited it to varchar() so as to not break mssql at one point - I know as I tested changing it19:36
paulrwe've now changed it to text, so if it still breaks mysql with other customfield/filter changes19:37
paulrwe've just broken it anyway19:37
paulrI partly wondering if we should have a mantis_custom_field_int_table19:37
paulrand a custom_field_string_table19:37
darynnow we're rewriting cf again...19:38
paulras a lot of our custom fields are to indicte dropdowns/checkbxoes etc where outcome is int19:38
paulr:)19:38
paulreither way, I think having value+text is the wrong solution19:38
paulras if it breaks mssql, it's gonna break it by having it there anyway19:39
paulrit seems we've already lost any mysql performance stuff19:39
paulrand iirc, pgsql stores short+long strings same way anyway19:40
paulror does it on fly19:40
darynmy point is if text breaks mssql it's already broken19:40
paulrnow considering you'll probably hit grief trying to convert text to varchar19:41
paulri'd be half inclined to yank the commit19:41
paulrmaximum size of varchar(max) is 2^30-119:42
paulrmaximum size of ntext/text is 2^31-119:42
paulrso I wonder if you can do alter table text -> varchar19:42
paulror whether sql will error/warn you heavily19:42
darynthis is why i asked you to test this stuff...i don't have facility to test against anything but mysql and pgsql19:43
*** Quits: fanno (~Morten@90.184.93.233) (Quit: Leaving.)19:46
paulrwell, adodb will fail to do it as it's shit19:47
paulrbut moving from text<>varchar's fine19:47
paulrdoesn't need any casting etc19:47
paulr(at least not in the sql management studio)19:47
paulrhowever19:48
paulrright now I need to go to bed19:49
darynyou said that...19:49
paulrwhich bit?19:49
daryngo to bed19:49
paulrwell it is 1am19:49
daryni still don't know what i'm supposed to do...19:49
paulrundo the schema change in some way19:53
paulrheh19:53
darynyou want two tables or one?19:53
paulrone for ints, one for strings maybe?19:53
darynwhat datatype for strings?19:53
paulr^^ that would probably be most sensible setup for performance maybe depending on how it was used19:54
paulrXLNEW19:54
darynwhere is that? i don't see it in the datadict19:54
paulrcorrect )19:55
paulrit doesn't exist yet19:55
darynuh...ok19:55
paulrneed to take a sledge hammer to it19:55
darynwe don't have time for a sledgehammer right now19:56
paulrsure we do19:56
paulrwell not this second as i'm going to bed but19:56
darynnot at the speed you move :P19:56
paulryou dont know how much I hate adodb :)19:56
paulranyway, really need to go :P19:57
darynso, i'm just going to split it out to two tables  make one int the other... XL :P and you can change it later19:57
paulr(I'm assuming that two tables makes sense - as probably 50% of custom fields are gonna be checkboxes or whatever19:58
darynk. two tables19:58
darynint, XL19:58
paulr'i'm just going to split it out '19:58
paulr'just'19:58
paulryou make it sound easy :)19:58
darynit is19:58
paulrshould be fun updating enum stuff and filters etc :P19:58
paulrand you now need to move int's from the current string values for enums etc19:59
darynthe enums are mostly just strings i think though...19:59
paulrsurely we store int and then the string in the definition??19:59
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
daryndon't think so20:00
darynjust the value20:00
darynthe string value...checking now20:00
paulrcheck that :)20:00
paulrreason for suggesting having a table of int's20:00
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
paulris i'm assuming that 3-4 of our field types for custom field generate ints20:00
darynprolly should anyway20:00
daryni don't think they do20:00
paulr+$g_custom_field_type_enum_string = '0:string,1:numeric,2:float,3:enum,4:email,5:checkbox,6:list,7:multiselection list,8:date,9:radio,10:textarea';20:01
paulrwould kinda expect that 1, (not 2?) , 3, 5, 6, not 7, 8, 920:01
paulrend up as int's20:01
paulrand 0, 2?, 7 end up as strings20:01
paulr+420:01
paulri.e. 7 are int's 4 are strings20:01
paulri'm then assuming people are more likely to be using custom fields for lists/checkboxes then strings20:02
paulrgiven we have notes etc and about 2-3 strings on a bug anyway20:02
paulrright bed for me yet? :)20:03
darynno because the enums aren't stored with an id they are stored as whatever string is entered20:03
paulrps. feel free to see if nuclear_eclipse and dhx agree with the int thing20:03
* paulr ponders20:03
paulrwhat you can localise the enum strings??????20:03
paulrs/what/but/20:03
darynnot really20:03
paulriirc20:03
darynthey are just a delimited string20:04
daryn|Regression|Install|New Feature|blah20:04
paulrhmm20:04
paulrinteresting20:05
paulri'm sure victors done a blog on localising them though20:05
darynperhaps20:05
paulr0:string,2:float,3:enum,4:email,,,, // 1:numeric, 5:checkbox,6:list 7:multiselection list  8:date,9:radio20:06
paulralthough tbh20:06
paulrgiven multiselection list should probably be a bitmask20:06
paulrcan probably store all of them as int lookups20:06
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 245 seconds)20:06
paulrapart from the first 420:06
paulrand even then20:06
paulrI probably think enum should be defined as 1:regstriong,2:install and then just store 3 in db20:07
paulrso you could localise it20:07
darynyeah...but that's a bigger issue20:07
paulrsure20:07
darynah, they do it with a custom function i think20:08
paulrhowever if you agree with that idea, it probably confirms need to have a string+int table20:08
paulrwonder if it works :P20:08
paulri mean, if english is entered, you view french20:08
paulrwonder if french person saves french, if it gets back to english...20:08
paulrnn20:08
paulrnn20:09
darynbye20:09
*** Quits: paulr (~IceChat09@2001:470:9310:aaaa:984a:9ef5:e044:eebc) (Read error: Operation timed out)20:12
*** Quits: daryn (~daryn@h59.157.16.98.dynamic.ip.windstream.net) (Ping timeout: 265 seconds)21:12
*** Joins: daryn (~daryn@h59.157.16.98.dynamic.ip.windstream.net)22:02
*** Joins: micahg (~micah@ubuntu/member/micahg)22:36
*** Quits: daryn (~daryn@h59.157.16.98.dynamic.ip.windstream.net) (Ping timeout: 265 seconds)23:29
*** Joins: daryn (~daryn@h59.157.16.98.dynamic.ip.windstream.net)23:47

Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!