*** wendall911 has left #gnuenterprise *** SachaS has joined #gnuenterprise *** btami has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** sjc has joined #gnuenterprise *** kilo has joined #gnuenterprise good morning hi kilo hi johannesV hi johannesV can you fix the release script, it doesn't links the common-0.5.10 it thinks 0.5.9 > 0.5.10 wow which release script ? in releases current page good question :) common/utils/release ... ? i think we better wait for reinhard to do this fix ... since he had a better overview about the release process ok *** reinhard has joined #gnuenterprise ah, there he is ... :) heh * reinhard hides *** dimas has quit IRC btami: you talking about the web site? yes ok thanks np hmmm hi reinhard i have an interesting problem then i like interesting problems :) do you want to talk about it? 8-)) just putting together the details johannesV: does postgresql support altering a column spec from NULL to NOT NULL? kilo: no it cannot because there migth be already NULL values in there and theirfore a constraint violation would occur ok, just the same here in iterbase and it did look sane what do you mean with 'did look sane' ? have you expected it to work ? no, it should not work, it is ok if it does not work ok btami extended a table (reports, foobulation), added a column 'ID' but the scripted generated code that first created the column, then tried to alter it to NOT NULL but that's another case: here it cannot work because after adding the new column all rows have a NULL value in there. so if the db would then add the constraint it would violate it in that moment and then it did not work... *** dimas has joined #gnuenterprise aaahhh finally found that script hmm hmm hmmmmmm how can then it be done? ok here is my problem currently i have a list of filenames like gnue-appserver-0.1.1 gnue-appserver-0.1.2 gnue-appserver-0.2.0 gnue-appserver-0.2.1 gnue-appserver-0.2.9 gnue-appserver-0.2.10 to find out the newest version, i currently do sort | tail --lines=1 what appearantly doesn't work * reinhard wonders if he should just release gnue-common 0.6.0 ;) or maybe we should switch to hex version numbers reinhard: sort -n | tail --lines=1 0.2.A this should do the trick eh, you were quicker johannesV ah no it does not 10 is still in between :( damn I think sort -n only takes the *first* numeric part exactly sort takes only the first arg but let me try for 5 mins johannesV: i have a foobulations table with 3 old field, and the table is empty the .gsd contains a new id field defaultwith="serial" as you can see in reports samples the scripter creates this lines: CREATE GENERATOR foobulations_id_seq; ALTER TABLE foobulations ADD id smallint; CREATE TRIGGER trg_id FOR foobulations ACTIVE BEFORE INSERT POSITION 0 AS BEGIN IF (NEW.id IS NULL) THEN NEW.id = GEN_ID (foobulations_id_seq,1); END ALTER TABLE foobulations ALTER COLUMN id SET NOT NULL; and firebird screams on last line (-104, 'isc_dsql_prepare: Dynamic SQL Error. SQL error code = -104. Token unknown - line 1, char 42. SET. ') whay scripter not creates ALTER TABLE foobulations ADD id smallint NOT NULL; instead ? because this usually won't work reinhard: cat | tail --lines=1 adding a new NOT NULL column ? btami, does interbase accept that last alter statement ? as the docs writes, yes but i will try in a sec... reinhard, why won't you write a simple python script doing that sorting ? :) johannesV: yes, it accepts it ok, so i can change the creation for interbase why just for interbase isn't it standard sql ? will have check it for the others ok thx i thought it failed for postgres, for example on an empty table it should work on a table. if there is at least onw row in a table, it should not as i was thinking it is not sql-standard anyway ... but I'll see s/onw/one kilo, correct it cannot if the table contains information (as i've explained above) btami, try it with a table having one row ... :) the problem (alter table .... add ...) is independent from generators/serial/etc. imo the question is: why does interbase fail on that alter column set not null it fails if it has generator+trigger but in general alter table ... add .. not null have to work just adding a new column with an "alter table ..." statement can have usual column defs right, but if there is data in the table this statement can *not* work because this column has NULL for all *preexisting* rows and so violates the constraint NOT NULL yes, it's true, but *** holycow has quit IRC it can have default clause too and then it's _can_ be valid reinhard, here it is:sort -t . -k 1,1 -k 2,2n -k 3,3n foo where foo is the input -t . uses the "." as field delimiter -k 1,1 means "sort by the first field (which is the fielname including the -)" -k 2,2n means: sort by the second field numerically) and -k 3,3n is the same for the last number cool you were just about 30 seconds faster i was already at sort -t . -k 1 -k 2n -k 3n x but thanks ah ok but there is one problem left it assures me that it's the correct solution :) you mean foo-2.3.2 is greater than foo-10.2.3 when the major version number gets > 10? right ok we'll talk about in 20 years then ;-) you would have to add an additional sorting layer written in C really, why not sort with a little python thingy? i like writing shell scripts for stuff other people would use python or perl for it's my hobby ;-) mazochist... sort -t"-" foo | sort -t . -k 2,2n -k 3,3n this would do the job johannesV: all i want to notice: we don't have to make scripter too smart, just follow the sql standard, and johannesV: cool thanks let the dbms complain if something conflicts gnu textutils are a great thing !! btami, but that's what it tries to do ok, but why it not uses 1 line to add a new column then ? if you write a line like above with those sort blablabla, will yuo remember after 1 year what it does? btami, adding new columns to an existing table which introduce a NOT NULL constraint is problematic yes, i know kilo: sure kilo: you may ask me in a year from now but let the db backend report it :) kilo, if you put a # first sort by filename and major number, then by minor i would reinhard: ok, will try to remember to ask if you remember 8-))) btami, the only right solution would be the following: create a temporary table, copy all data into it, drop original table (or data) and modify it, copy back all data, and *INSERTING* a default value for the not-null-added column there's no other way to handle this case ... if the table is empty, there is no problem with this sql statement this would be a nice task if there's only one table affected, but if this table has ref. constraints to other tables one cannot remove data without handling all that other tables ... but there is a problem with a 2 line solution btami, the two-line solution was thought to handle "default" values where NOT NULL might be a bad 'default' value but if you add a column f.e. having a "DEFAULT 'foo'" it should work this way (as i've tested it worked *only* this way) yes, it's true i think the root of the problem is in firebird side, koz it cant handle generators in default clause ok, forget all my complaints above :) btw. one issue is remaining with firebird drivers creation i'v put it in #TODO in the code the before insert trigger code generation have to be 2 versions one for direct execution and one for file-dump ? 1) when putting it in a file, it have to use SET TERM... 2) when directed to kinterbasdb yes i'v just changed the default to 2) in the code and havn't implemented 1) well, i saw that ... and i've thought it's a bit dangerous ... :) not more dangerous than having not working 1 :) yeah it doesn't fit into the construction of schema-generation anyway ... *!!!!* interbase :)))) * btami is waiting for postgresql 8.0, it will ship native win port as i know btami: current download page is fixed thanks again for your report my pleasure please update exe files i will, just have the win build infrastructure at home only sorry not meaning to say you should do it *now* :) it's just a little bug still existing in the page generation it tests if the exe file is same or newer version than the .tar.gz and if exe is older version, it leaves it out completely no problem so that people don't download exe of obsolete version and this test does not work for 0.5.9 vs. 0.5.10 so while not displaying appserver .exe it still displays common 0.5.9 exe ok johannesV: SQLite has indexes?? wow yeah :) reinhard, have you already looked at navigator ? you mean tested the gtk2 ui right or created the curses ui? ok no but will do over weekend *** dimas_ has joined #gnuenterprise *lol* creating the curses ui for navigator will be a bit more work to do johannesV: yes johannesV: could you please update all Info.py files with notes like "This driver does not implement index introspection" where appropriate ok so the driver info for the web page is up to date and complete thanks of course only for drivers where introspection works apart from indexes :) *** dimas has quit IRC btami, do you need the sql-output of schema-creator ? cause adding that divergent output depending on flags given to gnue-schema is really a problem no, i used it only for debugging night *** SachaS has quit IRC has anybody use parameters in report-datasources successfully ? ok, got it sorry, had a typo in there and there was an error in DataObject.py not reporting the real exception all-time-svn-commits jcater: 1904 reinhard: 1006 jamest: 672 siesel: 441 ntiffin: 439 treshna: 439 johannesV: 403 dneighbo: 369 btami: 318 arturas: 127 jmeskill: 118 baumannd: 88 kilo: 64 jbailey: 23 cspence: 18 dimas_: 10 madlocke: 4 micah: 2 root: 4 gnue: 2 arno: 1 dhill: 1 florin: 1 psu_gnue: 1 some people committed by different names, these were summed up reinhard's commit number is under inspection because of release script usage 8-)) johannesV: is it possible that from a form's block's OnNewRecord trigger i cannot access an appserver class' procedure? what is the time relation between Form::OnNewRecord and AppServer_ClassX::OnInit? bbl *** btami has quit IRC i think form's OnNewRecord is called 'before' the recordset is created but i'd have to check kilo, it should work in GFBlock's newRecord () function the new record get's created (-> appserver-class of the block's datasource is created) and then the PRE-FOCUSIN, followed by ON-NEWRECORD and POST-FOCUSIN triggers are fired hmmm it tells me there is no such function as 'newNumber', but there is... what is 'newNumber' ? a procedure in INV_Head class kilo, if you call procedures from forms-triggers, please make sure to use the block's call statement like blkPerson.call ('...') not the datasource what? derek 369 commits? why? scary (this has changed with the oninit-stuff) reinhard: lol kilo, iirc it was because if the function raises an error the state of the current record is set correctly hmm, ok, will try it soon. thx kilo: ah, yes, i wanted to remind you to change that in the wiki off to daughter's birthday party l8r all *** reinhard has quit IRC ah, ok. didn't notice it has changed in sample.gfd too... strange. same error message now, though using blkINV_Head.call(...) kilo, can i reproduce this using gnue-contrib ? hmmm, i'll commit it there in a minute ok johannesV: gnue-contrib up to date now the form INV_Head.gfd fails. if you comment out blkINV_Head OnNewrecord trigger, it is OK ok, have the form up what do i have to do ? you have the form up and running??? ok, i've forgotton to uncomment the call-part no need to uncomment it is in blkINV_Head ok, got it to work :) just change "newNumber" to "INV_newNumber" :) ooooooooooooooooooooooooooooo * kilo steps down... * kilo retire i was looking at it for at least 1 hour... :) oh my little daughter woke up ... :) bbl bbl, thx johannesV *** kilo has quit IRC *** sjc has quit IRC *** jamest has joined #gnuenterprise *** Amorphous has quit IRC *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** Amorphous has joined #gnuenterprise *** sjc has joined #gnuenterprise *** bluesbaron_ has joined #gnuenterprise *** bluesbaron_ has left #gnuenterprise *** SachaS has joined #gnuenterprise *** nickr has joined #gnuenterprise *** jcater has joined #gnuenterprise *** cilkay has quit IRC *** wendall911 has joined #gnuenterprise *** cilkay has joined #gnuenterprise *** holycow has joined #gnuenterprise *** johannesV_ has quit IRC ---------- (for the logs) reinhard: Bogus commit to update website. you can also just do: $ ssh reinhard@ash.gnuenterprise.org signal-website-update ---------- *** cilkay has quit IRC hey you guys what do you think of this: http://www.libertyetech.com/logo_raw.png spiffy now I just need a website :P *** kilo has joined #gnuenterprise *** mapangojoe has joined #gnuenterprise *** sjc has quit IRC *** sjc has joined #gnuenterprise *** jemfinch has joined #gnuenterprise howdy, folx0rs. bigbrother`: user list --capability owner jemfinch: jcater jcater: you in? maybe jcater: sweet. I may need your help :) bigbrother`: version jemfinch: The current (running) version of this Supybot is 0.79.999. The newest version available online is 0.80.0pre2. ok? (I'm doing the testing that doesn't require your help right now :)) who the hell are you jemfinch ? chillywilly: I'm the author of Supybot. ok lol jemfinch: please excuse our door greeter hehe * jemfinch is used to all kinds of IRCers. I'll be good supybot is pretty rad chillywilly: thanks. my favorite @weather 38654 jcater: The current temperature in Olive Branch, Mississippi is 81°F (3:40 PM CDT on October 22, 2004). Conditions: Scattered Clouds. Humidity: 65%. Dew Point: 68°F. Pressure: 29.92 in (1013 hPa). Visibility: 3.0 miles (4.8 kilometers). UV: 2 out of 12 :) that rocks my socks I think you guys need to find your own sayings that one is mine :) beg your pardon? we said that as kids sure you did ;) is it time to go home yet? yes I hate this fucking place lalala ooops, this thing is logged damn you bigbrother` !!! you're going down bigbrother`: die darn no die commmand *** jemfinch has left #gnuenterprise @weather LHUD kilo: The current temperature in Szeged, Hungary is 58°F. Conditions: Mist. Humidity: 94%. Dew Point: 57°F. Wind: NNE at 2 mph (4 km/h). Pressure: 30.18 in (1022 hPa). Visibility: 2.0 miles (3.0 kilometers). UV: 0 out of 12 better stay home and drink a dram o' whisky... *** moo has joined #gnuenterprise *** moo has left #gnuenterprise *** holycow has quit IRC *** SachaS has quit IRC *** jamest has quit IRC *** jcater has quit IRC *** kilo has quit IRC @weather 83864 wendall911: The current temperature in Sandpoint, Idaho is 37°F (5:10 PM MDT on October 22, 2004). Conditions: Overcast. Humidity: 81%. Dew Point: 32°F. Wind: WSW at 5 mph (7 km/h). Pressure: 29.72 in (1006 hPa). Visibility: 5.0 miles (8.0 kilometers). UV: 0 out of 12 *** sjc has quit IRC *** mapangojoe has quit IRC *** jcater has joined #gnuenterprise *** jamest has joined #gnuenterprise *** wendall911 has quit IRC *** jcater has quit IRC *** jamest has quit IRC