Wednesday, 2011-02-09

*** Alex| has quit IRC00:57
*** Alex| has joined #ingres00:57
*** ChanServ sets mode: +o Alex|00:57
*** stliu has quit IRC02:34
*** Dejan has joined #ingres03:29
Dejanhi everyody03:30
Dejaneverybody*03:30
*** Dejan has quit IRC04:49
*** Mud has joined #ingres05:12
*** grantc has joined #ingres05:19
*** mull has quit IRC05:30
*** Dejan has joined #ingres05:57
*** mull has joined #ingres06:33
*** Dejan has quit IRC06:42
*** grassi has joined #ingres07:07
grassiHi Folks07:07
grassiI've got a tabel with data and want to do a query where I want all text, but no empty lines with just "\n" ...07:08
grassitable.07:08
grassiwhen I extract the line I don't want via python/jdbc it looks like this:07:09
grassi u'\n'07:09
grassihow do I tell the query not to pull lines with those fields from the table?07:09
grassithe "u" in front of the '\n' means unicode, I guess07:10
grassi(or utf-8)07:10
pboroso you want to add a WHERE part in which you restrict out rows with '\n' in the column?07:11
grassiselect * from table where id = someid and textt <> '\n'  doesn't work, unfortunately07:11
pboroyes, you need to use character codes, lemme browse the manual for you07:12
grassimuchos gracias07:13
pborohttp://docs.ingres.com/ingres/9.2/sql-reference-guide/3667-unicode-literals07:13
pboroyou can also work it out without using unicode, by using hexadecimal representation07:15
pborohttp://docs.ingres.com/ingres/9.2/sql-reference-guide/2727-hexadecimal-representation07:15
grassithanks, I 'll try it out shortly and see if I can get it to work...07:20
*** mull has quit IRC07:28
grassipboro: I don't seem to be able to figure out what to write instead of " and textt <> '\n'  "07:41
pborolemme show you an example:07:41
grassipboro: if I do : and text <> U&'Hello\1234world\+123456' I get the error  Invalid syntax for Unicode literal.07:42
grassithat would be fantastic :-)07:42
pboronewline aka linefeed aka \n is 0a in hex (ascii)07:43
pboroso:07:43
pboroSELECT * FROM tbl WHERE col <> X'0a';07:43
pborothat would pick all rows, where col is not '\n'07:44
grassiah got it: and text <> X'0A' does the jog07:45
grassijob07:45
pboroyup :)07:45
grassithank you very much07:46
pborono prob07:46
*** grassi has quit IRC08:05
*** Alex| has quit IRC08:53
*** bonsaikitten has quit IRC09:23
*** Alex| has joined #ingres09:26
*** ChanServ sets mode: +o Alex|09:26
*** grantc has quit IRC09:29
*** Alex| has quit IRC10:23
*** bonsaikitten has joined #ingres12:07
*** Mud has quit IRC13:28
*** clach04 has joined #ingres13:36
*** stliu has joined #ingres17:07
*** mull has joined #ingres20:59
*** mull has quit IRC21:11
*** cytrinox_ has joined #ingres21:16
*** mull has joined #ingres21:17
*** cytrinox has quit IRC21:19
*** cytrinox_ is now known as cytrinox21:19
*** Alex| has joined #ingres22:37
*** ChanServ sets mode: +o Alex|22:37
*** Alex| has quit IRC23:15
*** Alex| has joined #ingres23:38
*** ChanServ sets mode: +o Alex|23:38

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