Tuesday, 2009-10-13

*** grantc has joined #ingres00:10
*** ChanServ sets mode: +o grantc00:10
*** ii_log` is now known as ii_log00:38
pboroHmmh... I'm trying to dump a table into file for inserting it to a different system. The source table contains a bunch of varchars, and if I use "col = char(0)tab", the value in the copy file is padded with spaces00:59
pborobut it can't use varchar(0) either, 'cos then Ingres adds the length in the beginning of the value01:00
pboroso... fail :(01:04
grantcpboro: try http://www.dbforums.com/other/927555-ingres-unloading-simple-table-comma-delimited-file.html#post340817201:08
pboroyeah, I just used sed to trim the fields01:10
pboroshould have remembered that copy to/from is only good for moving data between ingres installations :)01:10
grantcAlex|: congrats with getting Ingres into gentoo01:11
Alex|I'm working on an ebuild for v10... but it doesn't compile :(01:40
Alex|failed to build csmtmonitor.o01:49
Alex|and that leads to failing libcompat and the then rest is broken01:50
grantcwhy does csmtmonitor.o not build?01:54
Alex|it just says failed right after the call to cc... no error message01:55
Alex|even when I run the cc line manually I only see warnings, no errors...01:56
grantcam building on ubuntu 9.04 now - there appears to be a missing erglf.h01:59
Alex|ah no, there is indeed an error01:59
Alex|/usr/include/sys/select.h:85: error: previous declaration of 'fd_mask' was here01:59
Alex|Ingres is using a typedef for fd_mask which is already used by this system header02:02
grantcif you define "xCL_014_FD_SET_TYPE_EXISTS" does the problem go away?02:08
Alex|yes this is the problem...02:09
Alex|not sure where it gets defined02:11
Alex|there is a define in clconfig.h02:11
Alex|ah, tools/port/shell_unix/mksecret.sh:168202:15
Alex|$vers is int_lnx but fd_set is defined in select.h and not in types.h02:15
Alex|so the define is not set02:15
Alex|not sure what the sense of this if is... why not just always running the else part02:17
grantcperhaps it got over looked in some recent changes (last 3-4months) to the jam process02:19
*** Gerhard has joined #ingres02:21
Alex|is bugs being used?02:32
grantcyes02:33
Alex|ok, so I can put my patches there02:33
*** FrankW has quit IRC04:01
*** Gerhard has quit IRC04:04
*** Dejan has joined #ingres04:40
Dejanhello04:40
*** Dejan is now known as Guest7112504:40
Guest71125:)04:40
*** Guest71125 is now known as Deyan04:40
Deyanguys, i have a table with 4 rows04:41
Deyanone of them contains a single char04:41
DeyanH, L, M, C04:41
Deyani want to select those rows and add additional column04:41
Deyanwhich will contain a number04:42
Deyani used IF04:42
DeyanSELECT code, IF(code='H',3) FROM table04:42
Deyancan i have multiple IFs there?04:43
Alex|sounds like CASE04:43
*** atrofast1 has quit IRC05:00
*** rossand has joined #ingres05:05
*** ChanServ sets mode: +o rossand05:05
*** cthibert has joined #ingres05:38
*** atrofast has joined #ingres05:39
*** Deyan is now known as Dejan06:32
*** mull_ has joined #ingres06:43
*** FrankW has joined #ingres06:57
*** Vroomfon1le has quit IRC07:18
*** Vroomfondle has joined #ingres07:18
*** cthibert has quit IRC07:45
*** FrankW has quit IRC07:51
*** atrofast has quit IRC07:54
*** atrofast has joined #ingres07:54
*** rossand has quit IRC08:00
DejanAlex|: yeah, it does ;)08:00
*** Nornagest has quit IRC08:00
*** Alex| has quit IRC08:00
*** Alex| has joined #ingres08:01
*** ChanServ sets mode: +o Alex|08:01
*** Alex| is now known as Alex|off08:02
*** Nornagest has joined #ingres08:02
*** Alex|off is now known as Alex|08:03
*** toumi01 has joined #ingres08:09
*** FrankW has joined #ingres08:19
*** rossand has joined #ingres08:26
*** ChanServ sets mode: +o rossand08:26
*** cthibert has joined #ingres09:08
*** grantc has quit IRC10:12
cytrinoxE_US1914 APPEND: Sequence '`\u2013X`\u2013' referenced in next/current value was not found.10:39
cytrinox..does anyone know what this message means? :)10:40
pboroyou have some column set to get its value from a sequence and that sequence was not found?10:40
pboroat least that's how I understand it10:41
DejanUTF ?10:42
*** FrankW has quit IRC10:44
cytrinoxif this is utf-8, this is a very curious name for a sequence..10:46
Dejanyep :D10:46
Dejanfrom my experience - ingres sometimes gets confused with sequences10:47
cytrinoxI'm only use autogenerated sequences by GENERATED ALWAYS AS IDENTITY10:48
cytrinoxuurgs10:48
cytrinoxthere is really such a sequence10:48
cytrinoxlooks like |||`X`|||10:48
cytrinoxhmm.. seems i have found the next bug *grr*10:50
pborocytrinox, which version of ingres?10:50
cytrinox9.310:50
cytrinoxthe sequence was auto-generated from my create table "article"(... statement10:51
cytrinoxmy script tries now to delete the table, that triggers the deletion of the sequence and deleting a sequence with this same seems impossible :)10:51
cytrinoxfrom visual dba i can't delete the sequence via context-menu/delete, too10:52
cytrinoxdrop sequence cytrinox..`-.X`-..10:53
cytrinoxE_US0A94 line 1, Unexpected character ''.10:53
cytrinoxsoo eh... how can i delete the table (and the sequence)? :)10:56
pboroyou could try copydb on the db to see how ingres names the table and sequence in copy.out/in script10:57
pboroand then use that name in isql or similar to delete them10:57
Dejancytrinox: then i am not surprised you have problems10:58
Dejancytrinox: which version of ingres?10:58
Dejan9.3 and above?10:58
cytrinoxDejan: 9.310:58
Dejanyeah...10:58
Dejanhow many tables?10:58
pborocytrinox, is it community version or the commercial version?10:59
cytrinoxpboro: the name is totally fucked up, it contains non-printable chars. so I think I can't use any direct DROP SEQUENCE xxx; statement11:00
pborookay, doh :(11:00
cytrinoxDejan: 2 tables I have just created11:00
cytrinoxpboro: uhm.. it's the demo version which is available from the ingres.com page11:00
pborocytrinox, ah, ok11:01
Dejancytrinox: could it be that you did not properly escape those chars?11:03
Dejanor, could it be that you did not create database with unicode in mind?11:03
pborocytrinox, what is the name of the table?11:03
DejanIDENTITY column will autogenerate sequence behind the scene11:03
pborojust wondering about the name of the sequence...11:03
cytrinoxDejan: it's the demodb database that was available after installation11:03
Dejanname of the sequence should be in "help table <tablename>"11:04
Dejan(autogenerated for the INDENTITY field)11:04
Dejansure11:05
cytrinoxDejan: I have executed my table-create script yestermay very often again and again to test some issues with stored procedures in ingres.11:05
Dejanyou can always get it via "select * from iisequences"11:05
Dejancytrinox: try to see if you have many locks11:06
Dejani had to increase number of locks because by db got borked after a while11:07
Dejangrantc helped me, and we found that increase of locks can help11:07
Dejansomething like: iisetres ii.*.rcp.lock.per_tx_limit 200011:07
cytrinoxDejan: a select on iisequences returns something like \f'\0x23....11:08
Dejanwhat?11:08
Dejano.O11:08
cytrinoxwait, i take a screenshot :P11:08
Dejanthat is weird11:08
pborocytrinox, did you use other chars than those in ascii or iso8859-1 in the table names?-)11:08
Dejaneither that, pboro, or he does not have terminal11:09
Dejancapable of showing special chars11:09
Dejanneeded for TM11:09
Dejanwell, screenshot will help11:09
cytrinoxpboro: noo, I havn't do anything other from that what I have done yesteray 100000 times11:10
pborook11:10
cytrinoxhttp://terminal.io/ingres1.png11:11
cytrinoxthe selected sequence is.. you will see it ;)11:11
pboronice :D11:12
cytrinoxthis sequence is used by the article table. the user table uses the $iidentity_sequence_xxxxx11:12
Dejankhm...11:12
Dejancan you check for which table is it used11:12
cytrinox < cytrinox> this sequence is used by the article table.11:13
Dejanyeah, those are typically assigned for IDENTITY columns11:13
Dejanthe problematic sequence is used for something else11:13
Dejancan you check which table is associated with it?11:13
cytrinoxan again:  < cytrinox> this sequence is used by the article table.11:13
cytrinox:)11:13
cytrinoxyou can see the create table script in the background window11:14
Dejanups11:14
cytrinox;)11:14
cytrinoxIf I want to drop the "article" table, ingres tells me it can't delete teh table because drop sequence \x(/&"8XX as a syntax error11:15
Dejanweiiird11:15
cytrinoxjeeep :)11:15
Dejani never used visual sql...11:15
cytrinoxI'm using now ingres for two days.. two bugs in two days, maybe I should become a beta tester :-)11:15
pborosomething went really wrong when the sequence was created... :D11:15
Dejani use squirrel-sql on winblows11:15
Dejanand terminal monitor on linux11:15
Dejancytrinox: i know the feeling11:16
Dejani have already submitted 1 bug11:16
Dejancan you try to use command line utility?11:16
Dejan(terminal monitor)11:16
Dejani see you are using some unix there11:17
Dejanwhy using visual sql...11:17
Dejanblasphemy!11:17
Dejan:)))11:17
cytrinoxbecause I don't want to install anything outside of the virtual machine ;)11:18
cytrinoxThe initial idea was to include ingres in an article over stored procedure I'm currently writing on. I don't need any productive ingres system11:19
cytrinoxI have switched to another db, now the script works11:20
cytrinoxsoo.. I'm using SELECT x INTO :myvar FROM y; inside my procedure. but that is broken in 9.311:22
cytrinoxis there a second method to assign vars?11:23
cytrinoxsomething like myvar = (SELECT...)?11:23
pborolemme check the manual11:23
pborohmmh... can't spot stored procedures in the manual... :D I guess I'm looking from the wrong places11:25
cytrinoxhehe11:25
pboroha, found it11:27
pboro"SELECT c_name, c_zip INTO :custname, :custzip FROM customer WHERE c_id = :custno;"11:29
pborocan't spot alternate syntax11:30
pborowhat was the problem with the syntax, error is reported?11:30
*** Dejan has quit IRC11:30
cytrinoxno, but such statements breaks selectable procedures11:31
cytrinoxhttp://community.ingres.com/forum/questions-feedback-suggestions/11240-selectable-procedure-returns-no-rows.html11:31
cytrinoxsee last post11:31
pborook, thanks for the info11:31
pboroahh, yes... unfortunately11:33
pborooops, *unfortunate11:33
cytrinoxjep11:34
cytrinox[...]If you replace both of these selects with an assignment statement that assigns the variable that's being assigned in the select statement, then the select from the table procedure runs.11:35
cytrinoxI thought about var = SELECT ....11:36
cytrinoxbut that doesn't work11:36
pboroyou could ask for an example from the forum, I can't spot any alternative syntax :/11:38
cytrinoxyeah, that is what i will try next :)11:39
cytrinoxoh and.. I have asked on the forum but noone answered - I have a bug ID, but on bugs.ingres.com there isn't any bug with tis ID. is there a second bugtracker?11:40
pboroyes, it is an internal bug tracker used by Ingres Corp.11:41
cytrinoxgrml.11:41
cytrinoxis there any chance to get an notice when the bug is closed/fixed?11:45
pboroif you're a paying customer, then yes11:46
cytrinox...11:47
pborohmm I guess that if the bug was logged at bugs.ingres.com, the guys at ingres would close it once fixed11:47
pborobut don't really know :)11:48
pboroconsidering the amount of bugs in Ingres, it's a saviour that the support service is so good11:49
*** rossand has quit IRC11:54
*** rossand has joined #ingres11:57
*** ChanServ sets mode: +o rossand11:57
*** FrankW has joined #ingres12:03
*** mull_ is now known as mull13:05
*** toumi01 has quit IRC13:51
*** cthibert has left #ingres14:16
*** rossand has quit IRC14:50
*** mull has quit IRC14:58
*** rossand has joined #ingres15:46
*** ChanServ sets mode: +o rossand15:46
*** atrofast has quit IRC16:09
*** cytrinox_ has joined #ingres19:20
*** cytrinox has quit IRC19:21
*** cytrinox_ is now known as cytrinox19:21
*** toumi01 has joined #ingres19:28
*** toumi01 has left #ingres19:32
*** rossand has quit IRC21:15
*** Alex| has quit IRC23:34
*** Nornagest has quit IRC23:34
*** Alex| has joined #ingres23:35
*** ChanServ sets mode: +o Alex|23:35
*** Nornagest has joined #ingres23:36
*** Alex| is now known as Alex|off23:36
*** Alex|off is now known as Alex|23:36
*** grantc has joined #ingres23:45
*** ChanServ sets mode: +o grantc23:45

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