Wednesday, 2010-08-25

../irclogs/#mantishelp.2010-08-25.log
--- scribe started ---00:00
CIA-100Mantisbt: daryn * rd5a59a4cdebb /core/collapse_api.php: Fix missing space causing validation error.06:05
CIA-100Mantisbt: daryn * r5dec982e75a1 /core/collapse_api.php: Remove extra \".06:05
CIA-100Mantisbt: daryn * r6083666774c4 /core/html_api.php: Add missing closing tags.06: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. Add06:06
foobotBug 11826 - dhx - open - assigned06:06
foobotRemove all inline JavaScript from MantisBT (use external scripts instead) - http://www.mantisbt.org/bugs/view.php?id=1182606:06
CIA-100Mantisbt: daryn * r94c2e872d0c0 /core/html_api.php: Use class rather than id for the menu links. They may appear more than once06: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's06:06
foobotBug 11995 - brandonjackson - fixed - assigned06:06
CIA-100Mantisbt: daryn * rc0d2239266ed / (core/print_api.php css/default.css): Move styles for recently-visited into css. remove html style elements.06:06
CIA-100Mantisbt: daryn * r99a9d10435e7 /view_all_inc.php: remove border. It is not a valid tr attribute.06:06
foobotAdd CSS IDs to html elements for styling and javascript access. - http://www.mantisbt.org/bugs/view.php?id=1199506:06
Githubmantisbt: master Daryn Warriner * d5a59a4 (1 files in 1 dirs): Fix missing space causing validation error.06:30
Githubmantisbt: master Daryn Warriner * 5dec982 (1 files in 1 dirs): Remove extra \".06: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 ...06:30
Githubmantisbt: master Daryn Warriner * 6083666 (1 files in 1 dirs): Add missing closing tags.06: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 ...06:30
foobotBug 11826 - dhx - open - assigned06:30
Githubmantisbt: master Daryn Warriner * c0d2239 (2 files in 2 dirs): Move styles for recently-visited into css.  remove html style elements.06:30
Githubmantisbt: master Daryn Warriner * 99a9d10 (1 files in 1 dirs): remove border. It is not a valid tr attribute.06: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 ...06:30
Githubmantisbt: master commits 0e504c8...6b5e037 - http://bit.ly/angOFM06:30
foobotRemove all inline JavaScript from MantisBT (use external scripts instead) - http://www.mantisbt.org/bugs/view.php?id=1182606:30
foobotBug 11995 - brandonjackson - fixed - assigned06:30
foobotAdd CSS IDs to html elements for styling and javascript access. - http://www.mantisbt.org/bugs/view.php?id=1199506:30
davidinc_hi08:31
davidinc_still don't have an answer about ManTweet plugin?08:31
istvanbhello08:40
istvanbanybody who has experience with the summary graphs?08: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).08:42
istvanbWhen I go to the summary page categories subpage, only these custom categories show up and the global categories are not08:42
josephross_I have a question if anyone is around10:59
josephross_i have noticed some people have a irc mantis announcement feed10:59
josephross_and was wondering how this was done10:59
josephross_ive looked at the rss feed but it seems to only give the description11:00
josephross_not new events11:00
CIA-100Mantisbt: daryn * r839f1d68bc77 / (7 files in 5 dirs): Fix #6626 - Add text area custom field type. Add column to handle long20:10
* paulr pokes daryn20:12
daryn:)20:12
daryni was tired of waiting20:12
paulrI do want to revert that and make sure we're doing something that works on all our db's20:13
darynit shouldn't be a problem at all20:13
paulrwell, we are adding 'text' why?20:13
darynit's the same as every other text field in the db.20:14
paulryes, which I think might cause problems having it in that table20:14
darynno it wont20:14
paulryou've tested mssql?20:14
darynno20:15
darynbut we've been talking about this for over a year now...maybe two and still no resolution20:15
paulrsure20:15
paulrbut randomnly dumping a field in without testing it isn't a solution20:16
darynit isn't random20:16
paulrsure it is - you've not tested it on mssql20:16
darynmssql bah20:16
paulrpersonally20:16
paulrif we have a data type mssql supports20:16
paulrwe dont need text/value20:16
paulrand can simplify that code20:17
paulralternatively, we probably need a seperate table20:17
paulrlike we do with bugtext stuff20:17
darynwhy would it need a different table?20:17
giallunot that I care about mssql but20:18
gialluif we're breaking it that's not good. the question is20:18
gialluare we breaking it?20:18
paulrwell20:19
darynit shouldn't be breaking it. the only issue would be does it use too much disk space to have null value text fields20:19
paulriirc, reason we wanted a seperate field for long text was for db's like mssql...20:19
paulrfor mysql we could just use the existing value field20:19
paulrand change the data type20:19
paulrsame goes for postgres20:19
giallupaulr, that was what, 5 years ago?20:20
giallumaybe mssql is better now20:20
paulrmy point is20:20
paulradding an extra column to a db table to support something in mssql20:20
paulrwithout testing it in mssql or looking at what mssql now supports20:20
paulris a bit silly ;)20:20
gialluyeah, I'd much prefer we drop mssql :)20:21
paulrso either we revert that commit and test mssql20:21
paulror we keep that commit20:21
paulrtest mssql and decide if we can go back to just having one column20:21
paulrand run a migration script on the data20: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 me20:22
darynthis is a fairly frequently requested feature and this solution seems reasonable to me.20:23
gialludaryn, see. you've got the worng medium. avoid asking here about design decisions20:23
giallumailing list has memory :)20:23
darynwe had a discussion on the mailing list too I believe. that was quite some time back though.20:23
gialluwow. I forgot about it...20:24
gialluand it's not we have that much discussions there20:24
paulri'll revert that commit locally20:27
paulrfix the mssql stuff that dhx broke20:27
paulrthen reapply the commit20:27
darynsounds fabulous to me.  my evil plan appears to be working20:27
paulrheh20:27
paulrI just wish out installer actaully worked ;p20:29
darynworks for me...what's the issue?20:29
gialludaryn, anyway, you have all my sympathy. this is the kind of things that spoiled my willingness to devote time on stuff20:30
paulrgiallu: well, it just requires testing20:31
daryn:) well, i figured i'd get a rise out of paulr by just committing it.  surprised it took him 2 minutes to respond20:31
paulrand to commit db schema changes without testing20:31
paulrscrews us over as we can't reverse them20:31
paulri.e. to reverse this commit now if we decide we dont need it20:32
paulrwe need to migrate data to old column20:32
paulrthen delete the new column20:32
paulror just delete the new column (and hope no one starts following trunk)20:33
darynthat should only be true if we released with it in and then reversed it.20:33
paulrdev's running test builds will get the schema change20:33
paulrand have their config updated20:33
paulrwe can just delete the field20:33
paulrwithout caring about data (on basis it's not in a release)20:33
paulrbut we can't delete schema changes back out20:34
darynmm..why not?20:34
paulrwhen you update your db, it'll update config20:34
paulrso anyone running test instances20:34
paulror dev's20:34
darynright but test instances should be fresh every time anyway20:35
paulrsigh20:48
darynpaulr: yes?20: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" }20:55
paulrspot the flaw20:55
paulrdaryn: seems adodb is broken :P21:02
paulrthere's a surprise :)21:02
darynwhat's broken?21:02
paulr the flaw21:02
paulr[10:02.28] <paulr> dary21: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" }21:02
paulrshould be field names21:02
paulrnot int's ;)21:02
darynah, yes we've run into that before21:03
daryni think i switched from mysql to mysqli and it stopped doing that21:03
darynfor mysql was actually sending both numeric indexes and field names21: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 r21:10
darynow option.21:10
paulryes, I know21:14
daryngrr...21:15
paulr?21:15
darynjust frustrating21:15
paulrwhy? :)21:15
darynbecause i've asked this question several times and not gotten that answer.21:16
paulrwe've pasted that text into here before ;p21:16
daryni don't recall that one but whatever21: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:4121:17
paulrdarynyeah, i'm looking at that too...21:17
paulr:)21:17
darynok21:18
paulranyway, issue is more, I can't get mssql to work at all atm21:18
paulrheh21:18
paulrwe also need to decide if we support db2/oracle21:18
paulras21:18
daryndoesn't matter for this issue really as we'll have a bunch of fields to change if that's the case21:18
paulri've never managed to either of those db's set up in a way to dev with21:18
paulrtbh, i'm all for supporting just: a) mssql, b) pgsql, c) mysql d) sqlite21:19
daryneven the config  value field is a longtext21:19
paulr(with sqlite being more for 'dev')21:19
paulrbut the reason I dont like your commit is21:19
paulrthe reason youv'e added it is because the custom field value is too short21:19
darynright i get that but that's what i tried to fix before and you told me not to do that21:20
paulrif we conclude that we dont care about db2/oracle as no dev's can actually get it to run21:20
darynmaking it one long field21:20
paulryes21:20
paulras converting varchar->text - with text you couldn't use it in same way in where clauses21:20
darynso you're saying use varchar(max) for the value field and only have one field?21:23
paulractually, i'm saying we need to work out wtf we support21:24
paulr:)21:24
paulrtake db221:24
paulras far as I understand21:24
paulryou can do varchar/long varchar up to 8000 chars or something21:24
paulrthen need to use CLOB's21:24
paulrnow you see21:26
paulrXL goes to 'TEXT'21:26
darynright, and we have a bunch of 'XL'21:27
paulrat least some versions of mssql doesn't allow 'text' columns in a where clause or a group by clause21:27
darynso this one field is not the issue21:27
paulrso21: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' fields21:29
paulryes21:29
paulrbut your only duplicating the value/text columns in the custom field table to deal with the mssql datatype issue21:29
paulrand I suspect your commit has probably just broken some sort of filtering in mssql21:30
paulr(or at least potentially has)21:30
paulrPersonally, I want to drop db2/oracle support as afaict, NONE of the core dev's run it21:31
daryni'm ok with that21:31
paulrand so far i've personally failed to install db2/oracle on windows21:31
darynnot that it matters21:31
paulrand get it to work properly21:31
paulri'd then like to drop 'mssql' support21:32
paulrand add one or both of odbc_mssql and sqlsrv21:32
paulrand to do the above, we need to drop adodb21:33
paulras people don't like us having to patch adodb21:33
darynk. so how long is it going to take you to do that?21:36
paulrwell, question is whether everyone agrees on the db2/oracle thing21:37
paulrfor now at least21: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?21:39
paulrdb2/oracle I think need it21:39
darynoh good grief21:39
paulrdb2 has 8000 char limit on varchar21:39
darynew...looks like 400021:41
paulrphp db2_* functions are part of pecl21:43
paulrNumber of releases: 3221:46
paulrTotal downloads: 54,24021:46
paulrso not that many people downloading it from pecl21: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.21: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?21:51
paulrnot necessarily21:53
paulras we could adjust what adodb maps XL to for mssql21:53
paulr(which to all intents and purposes involves setting up our own datadict21:53
darynok...21: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 better21:55
paulrthe answer of mssql(with varchar(max)), mysql and pgsql I believe is one field21:56
paulrwith 2 fields/separate tables being historically better21:56
paulrfor oracle/db2 no idea21:56
paulrhttp://richardlees.blogspot.com/2010/07/varcharmax-performance-in-sql-server.html21: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.21:57
daryndoes it still slow the query down or use more memory?21:57
paulrapparently: 1. Adding a Text Data type / Varchar (MAX) to a table removes the ability for online re-indexing21:59
paulrhttp://geekswithblogs.net/johnsPerfBlog/archive/2008/04/16/ntext-vs-nvarcharmax-in-sql-2005.aspx22: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.22: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.22:01
paulrtbh, I thought that's what ntext did ;P22:01
paulralso see http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4de94284-cfe2-4a47-9863-8a2bbce4fb0722:03
paulrI guess the question is for us22:03
darynblah22:03
paulrif you consider that most of our text fields are probably <800022:03
paulrwhether nvarchar(max) is better for our workload :)22:03
daryni think that would be a very assessment to make.  I'd bet we have multiple custom fields with lots records > 800022:04
paulrwell I was thinking bugnotes and whatever else we have as text22:05
darynright22:05
paulri.e. 8000 characters is probably about 1000 words22:05
paulrthat's like a side or two of A4 right? :)22:05
darynabout 1600 words22:06
darynno idea about A4 :P22:06
darynmaybe two sides.  i'd agree way more than most fields will need22:06
paulranyway...22:07
paulrcoming back to where we were22:07
paulrwe really need to decide on what we spport22:07
paulrso we can test it22:07
paulrproperly ;)22:07
paulrmoving from where we are now which is basically:22:08
paulra) db222:08
paulrb) oci822:08
paulrc) mysql22:08
paulrd) mysqli22:08
paulre) mssql22:08
paulrf) odbc_mssql22:08
paulrg) pgsql22:08
paulrto:22:08
paulra) mysqli22:08
paulrb) sqlsrv22:08
paulrc) pgsql22:08
paulrd) sqlite22:08
paulrprobably makes some sense22:08
darynyeah...22: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.)22:09
paulr(I assume mysql is gradually going to be deprecated in favour of mysqli22:10
darynmaybe why mysql was acting weird for me.22:10
paulriirc, i remember a php dev mailing list discussion about whether they should make mysql_* functions point to mysqli_* ones22:10
darynso...one field or two tables...22:11
daryni like one field22: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.22:12
paulrat one point i think mysqli was the native driver (might be wrong)22:13
paulranyway22:13
paulrwhat I dont know22:14
paulris whether we need both mysql+mysqli etc22:14
paulrbut looking at my above list22:15
paulrit strikes me we'd dump a lot of old modules22:15
paulruse the newest22:15
paulradd spport for sqlite22:15
paulrand half the number of db's we support22:15
paulrmaking it semi-possible to test all 422:15
darynso, my thought... 1) alter cf.value to Text?  2) install function to cp cf.text to cf.value 3) drop cf.text22: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 others22:17
paulrI don't really like the idea of having 'shorttext' custom field + 'longtext' (i.e. what we now have)22:17
paulrand then allowing users to specify a max length on short+long text22:17
darynboth shortext and longtext are variable in most cases so they only use what they use...why does it matter?22:18
paulrwell if 'shorttext+longtext are both infinite length22:19
paulrconfusing22:19
paulrin terms of db engines22:19
paulrNULL. The value is a NULL value.22: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.22:19
paulrREAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.22:19
paulrTEXT. The value is a text string, stored using the database encoding (UTF-8, UTF-16BE or UTF-16LE).22:19
paulrBLOB. The value is a blob of data, stored exactly as it was input.22:19
paulrThose are sqlite data types22:19
daryni have to go pick up kids...i'll be back in about 45min - an hour. will you still be here?22:19
paulri.e.22:19
paulrfor the most part can be ignored22:19
paulrgoing to bed in 40m probably22:19
paulrso unlikely22:19
paulranyway, if everyone's agreed on forgetting about db2/oracle for now22:20
paulrwe can simplify code and decide22: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 :P22:20
paulrenjoy the kids ;)22:20
darynso, is my plan above ok with you?  to simplify to one XL field for now?22:21
darynand migrate rather than reverting since we 'have a db change out there'?22:21
paulrkinda want to think22:21
darynyou said that 6mos ago, yr ago...etc.   I need to move!22:21
paulroriginally, I believe we were thinking of using seperate db tables :)22:22
darynwe went back and forth22:22
darynseems silly and more complicated to me22: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 922:22
paulr:)22:22
paulrwe are on 1.3 now22:22
paulri'd be inclined for that to focus on22:23
paulrsql 2008 Express (Free)22:23
darynwhich raises the text problem22:23
paulrpgsql 8 + 922:23
paulrand mysql 522:23
darynk. so...one field22:23
daryni want to do this tonight22:24
paulrwell, we've not checked the mysql/pgsql docs in this discussion :)22:24
darynmysql is fine22:24
darynpgsql not sure22:24
paulrs a great time to beta test the 5.5 release and give feedback to the MySQL engineering team.22:24
paulrmm22:24
darynbut i'd go with fine22:24
daryni'll look tonight22:24
paulrthe biggest issue is queries22:24
paulrwith text, that was where mssql hit grief22:25
darynremembering that if we have to convert XL at all we have to do it anyway22:25
paulri.e. you couldn't group by ntext22:25
darynright22:25
darynwhich you wouldn't normally want to do anyway22:25
paulrneed to check if you can groupby varchar(7999) but not group by varchar(8001)22:25
paulrthere was also something with WHERE clauses22:25
darynalthough where '%xxx%' would be valuable22:25
paulrbut then we've also rewritten filter api a bit22:26
paulr:)22: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 circumstances22:26
daryngotta go...post additional thoughts you have and I'll read them in a bit22:26
paulrso yea22:26
paulrlo dhx22:26
dhx_mhey22:27
paulrwww.mantisforge.org/irclogs22:27
darynhi dhx_m read backlogs...i'll be back in an hour22:27
paulrread last hour pls22:27
paulrheh22:27
* paulr strokes whip22:27
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/aIcLnz22:30
dhx_mread it :)22:39
dhx_mmy comment at the moment is to stick with the databases used by developers22:40
dhx_m-or- setup an automated testing service that tests branches against multiple databases22:40
paulrwb23:13
paulr(6)23:14
darynhola23:16
darynpaulr so...thought about it?  one field or two tables?23:18
paulrI think we are all agreed atm on supported db's23:18
paulraka:23:19
paulr[11:08.28] <paulr> to:23:19
paulr[11:08.35] <paulr> a) mysqli23:19
paulr[11:08.41] <paulr> b) sqlsrv23:19
paulr[11:08.43] <paulr> c) pgsql23:19
paulr[11:08.45] <paulr> d) sqlite23:19
paulrso we should really make some notes on what those db's support/allow23:19
paulrand any obvious oddities23:19
paulrwhat storage engine do we use ?23:23
paulrmyISAM?23:23
darynyes23: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.23:25
daryni'll concede that deciding whether to use 1 or 2 fields or 2 tables should have been nailed down first23: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)23:26
paulr..23:26
paulrStatic-format tables have these characteristics:23:26
paulrCHAR and VARCHAR columns are space-padded to the specified column width, although the column type is not altered.23:26
* paulr ponders23:26
paulrsurely that didn't mean to put and varchar there23:26
paulranyway23: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:23:26
paulrnow23:27
paulrI guess that means we dont have many(any?) static formats23:27
darynunlikely23:27
darynoh, bug relationship is23:28
darynbug tag is23:29
darynso, at least a couple23:29
darynbut mostly no23:29
paulrraises an interesting question of whether char() would ever be better then varchar() ;p23:35
paulrmysql> describe mantis_custom_field_string_table;23:35
paulr+----------+--------------+------+-----+---------+-------+23:35
paulr| Field    | Type         | Null | Key | Default | Extra |23:35
paulr+----------+--------------+------+-----+---------+-------+23:35
paulr| field_id | int(11)      | NO   | PRI | 0       |       |23:35
paulr| bug_id   | int(11)      | NO   | PRI | 0       |       |23:36
paulr| value    | varchar(255) | NO   |     |         |       |23:36
paulr+----------+--------------+------+-----+---------+-------+23:36
paulr3 rows in set (0.06 sec)23:36
paulranyway23:36
paulrthat table23:36
paulrI have a couple of opinions23:36
paulra) we limited it to varchar() so as to not break mssql at one point - I know as I tested changing it23:36
paulrwe've now changed it to text, so if it still breaks mysql with other customfield/filter changes23:37
paulrwe've just broken it anyway23:37
paulrI partly wondering if we should have a mantis_custom_field_int_table23:37
paulrand a custom_field_string_table23:37
darynnow we're rewriting cf again...23:38
paulras a lot of our custom fields are to indicte dropdowns/checkbxoes etc where outcome is int23:38
paulr:)23:38
paulreither way, I think having value+text is the wrong solution23:38
paulras if it breaks mssql, it's gonna break it by having it there anyway23:39
paulrit seems we've already lost any mysql performance stuff23:39
paulrand iirc, pgsql stores short+long strings same way anyway23:40
paulror does it on fly23:40
darynmy point is if text breaks mssql it's already broken23:40
paulrnow considering you'll probably hit grief trying to convert text to varchar23:41
paulri'd be half inclined to yank the commit23:41
paulrmaximum size of varchar(max) is 2^30-123:42
paulrmaximum size of ntext/text is 2^31-123:42
paulrso I wonder if you can do alter table text -> varchar23:42
paulror whether sql will error/warn you heavily23:42
darynthis is why i asked you to test this stuff...i don't have facility to test against anything but mysql and pgsql23:43
paulrwell, adodb will fail to do it as it's shit23:47
paulrbut moving from text<>varchar's fine23:47
paulrdoesn't need any casting etc23:47
paulr(at least not in the sql management studio)23:47
paulrhowever23:48
paulrright now I need to go to bed23:49
darynyou said that...23:49
paulrwhich bit?23:49
daryngo to bed23:49
paulrwell it is 1am23:49
daryni still don't know what i'm supposed to do...23:49
paulrundo the schema change in some way23:53
paulrheh23:53
darynyou want two tables or one?23:53
paulrone for ints, one for strings maybe?23:53
darynwhat datatype for strings?23:53
paulr^^ that would probably be most sensible setup for performance maybe depending on how it was used23:54
paulrXLNEW23:54
darynwhere is that? i don't see it in the datadict23:54
paulrcorrect )23:55
paulrit doesn't exist yet23:55
darynuh...ok23:55
paulrneed to take a sledge hammer to it23:55
darynwe don't have time for a sledgehammer right now23:56
paulrsure we do23:56
paulrwell not this second as i'm going to bed but23:56
darynnot at the speed you move :P23:56
paulryou dont know how much I hate adodb :)23:56
paulranyway, really need to go :P23: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 later23:57
paulr(I'm assuming that two tables makes sense - as probably 50% of custom fields are gonna be checkboxes or whatever23:58
darynk. two tables23:58
darynint, XL23:58
paulr'i'm just going to split it out '23:58
paulr'just'23:58
paulryou make it sound easy :)23:58
darynit is23:58
paulrshould be fun updating enum stuff and filters etc :P23:58
paulrand you now need to move int's from the current string values for enums etc23:59
darynthe enums are mostly just strings i think though...23:59
paulrsurely we store int and then the string in the definition??23:59

Generated by irclog2html.py