You can subscribe to this list here.
| 2002 |
Jan
|
Feb
(3) |
Mar
|
Apr
(12) |
May
(11) |
Jun
(2) |
Jul
(37) |
Aug
(3) |
Sep
(24) |
Oct
(31) |
Nov
|
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(3) |
Feb
(7) |
Mar
|
Apr
(11) |
May
(15) |
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(4) |
Dec
|
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Michael N. <mne...@us...> - 2002-07-03 19:56:13
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_pg
In directory usw-pr-cvs1:/tmp/cvs-serv10969
Modified Files:
Pg.rb
Log Message:
added Statement#fetch_scroll (patch by Stephen Davies)
Index: Pg.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbd_pg/Pg.rb,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- Pg.rb 3 Jul 2002 19:22:47 -0000 1.21
+++ Pg.rb 3 Jul 2002 19:56:10 -0000 1.22
@@ -455,7 +455,11 @@
def fetch
@result.fetchrow
end
-
+
+ def fetch_scroll(direction, offset)
+ @result.fetch_scroll(direction, offset)
+ end
+
def finish
@result.finish if @result
@result = nil
@@ -511,18 +515,43 @@
def fetchrow
@index += 1
- if @index < @result.size
+ if @index < @result.size && @index >= 0
fill_array(@result[@index])
+ @row
else
- @row = nil
+ nil
end
- @row
end
- def row_count
- @pg_result.num_tuples
+ def fetch_scroll(direction, offset)
+ # Exact semantics aren't too closely defined. I attempted to follow the DBI:Mysql example.
+ case direction
+ when SQL_FETCH_NEXT
+ # Nothing special to do, besides the fetchrow
+ when SQL_FETCH_PRIOR
+ @index -= 2
+ when SQL_FETCH_FIRST
+ @index = -1
+ when SQL_FETCH_LAST
+ @index = @result.size - 2
+ when SQL_FETCH_ABSOLUTE
+ # Note: if you go "out of range", all fetches will give nil until you get back
+ # into range, this doesn't raise an error.
+ @index = offset-1
+ when SQL_FETCH_RELATIVE
+ # Note: if you go "out of range", all fetches will give nil until you get back
+ # into range, this doesn't raise an error.
+ @index += offset - 1
+ else
+ raise NotSupportedError
+ end
+ self.fetchrow
end
-
+
+ def row_count
+ @pg_result.num_tuples
+ end
+
def rows_affected
@pg_result.cmdtuples
end
|
|
From: Michael N. <mne...@us...> - 2002-07-03 19:24:30
|
Update of /cvsroot/ruby-dbi/src/lib/dbi
In directory usw-pr-cvs1:/tmp/cvs-serv1868
Modified Files:
dbi.rb
Log Message:
Added StatementHandle#[] and #[]=. Updated DBI and DBD specs.
Index: dbi.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbi/dbi.rb,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- dbi.rb 3 Jul 2002 16:48:36 -0000 1.30
+++ dbi.rb 3 Jul 2002 19:24:25 -0000 1.31
@@ -862,6 +862,15 @@
end
end
+ def [] (attr)
+ raise InterfaceError, "Statement was already closed!" if @handle.nil?
+ @handle[attr]
+ end
+
+ def []= (attr, val)
+ raise InterfaceError, "Statement was already closed!" if @handle.nil?
+ @handle[attr] = val
+ end
end # class StatementHandle
|
|
From: Michael N. <mne...@us...> - 2002-07-03 19:24:30
|
Update of /cvsroot/ruby-dbi/src/lib/dbi/doc
In directory usw-pr-cvs1:/tmp/cvs-serv1868/doc
Modified Files:
DBD_SPEC DBI_SPEC
Log Message:
Added StatementHandle#[] and #[]=. Updated DBI and DBD specs.
Index: DBD_SPEC
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbi/doc/DBD_SPEC,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DBD_SPEC 22 Oct 2001 16:01:30 -0000 1.4
+++ DBD_SPEC 3 Jul 2002 19:24:25 -0000 1.5
@@ -1,5 +1,5 @@
=begin
-= DBD Specification Version 0.2 (Draft)
+= DBD Specification Version 0.2.2 (Draft)
by Michael Neumann (ne...@s-...)
$Id$
@@ -163,7 +163,7 @@
--- []=( attr, value )
Set value of attribute ((*attr*)) to ((*value*)).
An attribute is e.g. "AutoCommit".
- Raise an NotSupportedError, if the database do not support an attribute.
+ Raise a NotSupportedError, if the database do not support an attribute.
The default implementation is to raise a NotSupportedError.
@@ -270,6 +270,18 @@
Return (({nil})) if no rows are available.
Defaults to multiple calls to (({fetch})).
+
+--- []( attr )
+ Return value of attribute ((*attr*)).
+
+ Defauls to return the value of (({@attr[attr]})).
+
+--- []=( attr, value )
+ Set value of attribute ((*attr*)) to ((*value*)).
+ Raise a NotSupportedError, if the database do not support an attribute.
+
+ The default implementation is to raise a NotSupportedError.
+
=end
Index: DBI_SPEC
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbi/doc/DBI_SPEC,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DBI_SPEC 26 Nov 2001 00:14:32 -0000 1.6
+++ DBI_SPEC 3 Jul 2002 19:24:25 -0000 1.7
@@ -1,5 +1,5 @@
=begin
-= DBI Interface Specification Version 0.2.1 (Draft)
+= DBI Interface Specification Version 0.2.2 (Draft)
by Michael Neumann (ne...@s-...)
$Id$
@@ -348,7 +348,9 @@
Note that the returned (({DBI::Row})) object is only a reference and
should be copied (dup) if it is stored elsewhere.
-
+--- [](attr)
+--- []=(attr)
+ Sets or gets the attribute ((*attr*)).
=end
|
|
From: Michael N. <mne...@us...> - 2002-07-03 19:22:52
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_pg
In directory usw-pr-cvs1:/tmp/cvs-serv1354
Modified Files:
Pg.rb
Log Message:
Fixed semantic of method Statement#rows (affects also Database#do):
Now returns the Row Processed Count instead of the number of rows in the result.
The old behaviour is still available through method Statement#['pg_row_count'].
Index: Pg.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbd_pg/Pg.rb,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Pg.rb 3 Jul 2002 16:48:36 -0000 1.20
+++ Pg.rb 3 Jul 2002 19:22:47 -0000 1.21
@@ -470,12 +470,26 @@
# Return the row processed count (or nil if RPC not available)
def rows
if @result
- @result.row_count
+ @result.rows_affected
else
nil
end
end
+ def [](attr)
+ case attr
+ when 'pg_row_count'
+ if @result
+ @result.row_count
+ else
+ nil
+ end
+ else
+ @attr[attr]
+ end
+ end
+
+
private # ----------------------------------------------------
end # Statement
@@ -508,6 +522,10 @@
def row_count
@pg_result.num_tuples
end
+
+ def rows_affected
+ @pg_result.cmdtuples
+ end
def finish
@pg_result.clear
|
|
From: Michael N. <mne...@us...> - 2002-07-03 16:51:52
|
Update of /cvsroot/ruby-dbi/src/doc/html In directory usw-pr-cvs1:/tmp/cvs-serv18030/html Modified Files: index.html Log Message: * Index: index.html =================================================================== RCS file: /cvsroot/ruby-dbi/src/doc/html/index.html,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:50:51
|
Update of /cvsroot/ruby-dbi/src In directory usw-pr-cvs1:/tmp/cvs-serv17570 Modified Files: LICENSE Log Message: license changed from GNU GPL to BSD Index: LICENSE =================================================================== RCS file: /cvsroot/ruby-dbi/src/LICENSE,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- LICENSE 6 May 2001 17:59:05 -0000 1.1.1.1 +++ LICENSE 3 Jul 2002 16:50:48 -0000 1.2 @@ -1,340 +1,23 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 +All rights reserved. - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_mysql In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_mysql Modified Files: Mysql.rb Log Message: license changed from GNU GPL to BSD Index: Mysql.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_mysql/Mysql.rb,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- Mysql.rb 21 May 2002 18:52:17 -0000 1.14 +++ Mysql.rb 3 Jul 2002 16:48:35 -0000 1.15 @@ -1,25 +1,34 @@ -# +# # DBD::Mysql -# $Id$ +# +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# Version : 0.3.3 -# Author : Michael Neumann (ne...@s-...) +# All rights reserved. # -# Copyright (c) 2001, 2002 Michael Neumann +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. require "mysql" require "thread" # for Mutex |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_ado In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_ado Modified Files: ADO.rb Log Message: license changed from GNU GPL to BSD Index: ADO.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_ado/ADO.rb,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ADO.rb 7 Jun 2001 10:42:11 -0000 1.5 +++ ADO.rb 3 Jul 2002 16:48:35 -0000 1.6 @@ -1,27 +1,34 @@ -# +# # DBD::ADO -# $Id$ +# +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# Version : 0.1 -# Author : Michael Neumann (ne...@s-...) +# All rights reserved. # -# Copyright (c) 2001 Michael Neumann +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - require "win32ole" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_odbc
In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_odbc
Modified Files:
ODBC.rb
Log Message:
license changed from GNU GPL to BSD
Index: ODBC.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbd_odbc/ODBC.rb,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ODBC.rb 6 Feb 2002 18:05:33 -0000 1.7
+++ ODBC.rb 3 Jul 2002 16:48:35 -0000 1.8
@@ -1,27 +1,34 @@
-#
+#
# DBD::ODBC
-# $Id$
+#
+# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...>
#
-# Version : 0.2.1
-# Author : Michael Neumann (ne...@s-...)
+# All rights reserved.
#
-# Copyright (c) 2001 Michael Neumann
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# 3. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# $Id$
#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
$:.delete(".")
require "odbc"
|
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_msql In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_msql Modified Files: Msql.rb Log Message: license changed from GNU GPL to BSD Index: Msql.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_msql/Msql.rb,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Msql.rb 7 Jun 2001 13:53:00 -0000 1.1 +++ Msql.rb 3 Jul 2002 16:48:35 -0000 1.2 @@ -1,25 +1,34 @@ -# +# # DBD::Msql -# $Id$ +# +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# Version : 0.1 -# Author : Michael Neumann (ne...@s-...) +# All rights reserved. # -# Copyright (c) 2001 Michael Neumann +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. require "msql" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_oracle In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_oracle Modified Files: Oracle.rb Log Message: license changed from GNU GPL to BSD Index: Oracle.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_oracle/Oracle.rb,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Oracle.rb 26 Nov 2001 00:12:47 -0000 1.5 +++ Oracle.rb 3 Jul 2002 16:48:35 -0000 1.6 @@ -1,28 +1,34 @@ -# +# # DBD::Oracle -# $Id$ -# -# Version : 0.2 -# Author : Michael Neumann (ne...@s-...) -# Jim Menard (method columns) -# -# Copyright (c) 2001 Michael Neumann -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ +# # |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/ext/dbd_sqlite In directory usw-pr-cvs1:/tmp/cvs-serv16447/ext/dbd_sqlite Modified Files: SQLite.c Log Message: license changed from GNU GPL to BSD Index: SQLite.c =================================================================== RCS file: /cvsroot/ruby-dbi/src/ext/dbd_sqlite/SQLite.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SQLite.c 22 Nov 2001 14:27:44 -0000 1.3 +++ SQLite.c 3 Jul 2002 16:48:35 -0000 1.4 @@ -1,15 +1,36 @@ /* * DBD driver for SQLite * - * file: SQLite.c - * author: Michael Neumann (ne...@s-...) - * id: $Id$ - * - * Copyright (C) 2001 by Michael Neumann. - * Released under the same terms as Ruby itself. + * Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> + * + * All rights reserved. * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id$ */ + /* TODO: * * - use more C-functions (C++ strings) to improve speed) @@ -18,7 +39,7 @@ * - warnings: should use rb_warn ? * - get column_info using "pragma table_info(table_name)" and * use it to return the appropriate Ruby type. - * */ + */ #include <sqlite.h> #include "ruby.h" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/bin/proxyserver In directory usw-pr-cvs1:/tmp/cvs-serv16447/bin/proxyserver Modified Files: proxyserver.rb Log Message: license changed from GNU GPL to BSD Index: proxyserver.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/bin/proxyserver/proxyserver.rb,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- proxyserver.rb 6 Feb 2002 17:27:08 -0000 1.2 +++ proxyserver.rb 3 Jul 2002 16:48:35 -0000 1.3 @@ -1,7 +1,33 @@ +#!/usr/bin/env ruby # -# $Id$ -# Copyright (c) 2001 by Michael Neumann (ne...@s-...) +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ +# require "drb" require "dbi" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_sqlrelay In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_sqlrelay Modified Files: SQLRelay.rb Log Message: license changed from GNU GPL to BSD Index: SQLRelay.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_sqlrelay/SQLRelay.rb,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SQLRelay.rb 28 Dec 2001 13:19:22 -0000 1.3 +++ SQLRelay.rb 3 Jul 2002 16:48:36 -0000 1.4 @@ -1,26 +1,34 @@ -# +# # DBD::SQLRelay -# $Id$ +# +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# Version : 0.2 -# Author : Michael Neumann (ne...@s-...) +# All rights reserved. # -# Copyright (c) 2001 Michael Neumann +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - require "sqlrelay" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/bin/commandline In directory usw-pr-cvs1:/tmp/cvs-serv16447/bin/commandline Modified Files: sqlsh.rb Log Message: license changed from GNU GPL to BSD Index: sqlsh.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/bin/commandline/sqlsh.rb,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- sqlsh.rb 17 Nov 2001 15:53:30 -0000 1.2 +++ sqlsh.rb 3 Jul 2002 16:48:35 -0000 1.3 @@ -1,7 +1,32 @@ #!/usr/bin/env ruby # +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> +# +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# # $Id$ -# by Michael Neumann # require "dbi" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/doc In directory usw-pr-cvs1:/tmp/cvs-serv16447/doc Modified Files: index.rd Log Message: license changed from GNU GPL to BSD Index: index.rd =================================================================== RCS file: /cvsroot/ruby-dbi/src/doc/index.rd,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- index.rd 17 Apr 2002 13:43:37 -0000 1.20 +++ index.rd 3 Jul 2002 16:48:35 -0000 1.21 @@ -2,25 +2,36 @@ = Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI $Id$ -Copyright (c) 2001, 2002 by Michael Neumann (ne...@s-...) - == License -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. +Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> + +All rights reserved. -Optionally this program is released under the same terms of license as Ruby itself. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +(1) Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +(2) Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +(3) The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +This is the BSD license which is less restrictive than GNU's GPL (General Public +License). == Contributors |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_proxy In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_proxy Modified Files: Proxy.rb Log Message: license changed from GNU GPL to BSD Index: Proxy.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_proxy/Proxy.rb,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Proxy.rb 6 Feb 2002 17:26:37 -0000 1.7 +++ Proxy.rb 3 Jul 2002 16:48:36 -0000 1.8 @@ -1,26 +1,34 @@ -# +# # DBD::Proxy -# $Id$ +# +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# Version : 0.2 -# Author : Michael Neumann (ne...@s-...) +# All rights reserved. # -# Copyright (c) 2001 Michael Neumann +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - require "drb" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/doc/html In directory usw-pr-cvs1:/tmp/cvs-serv16447/doc/html Modified Files: index.html Log Message: license changed from GNU GPL to BSD Index: index.html =================================================================== RCS file: /cvsroot/ruby-dbi/src/doc/html/index.html,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- index.html 16 Apr 2002 20:39:09 -0000 1.21 +++ index.html 3 Jul 2002 16:48:35 -0000 1.22 @@ -10,20 +10,33 @@ <body> <h1><a name="label:0" id="label:0">Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI</a></h1><!-- RDLabel: "Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI" --> <p>$Id$</p> -<p>Copyright (c) 2001, 2002 by Michael Neumann (ne...@s-...)</p> <h2><a name="label:1" id="label:1">License</a></h2><!-- RDLabel: "License" --> -<p>This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version.</p> -<p>Optionally this program is released under the same terms of license as Ruby itself.</p> -<p>This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details.</p> -<p>You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</p> +<p>Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...></p> +<p>All rights reserved.</p> +<p>Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met:</p> +<ol> +<li>Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer.</li> +<li>Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution.</li> +<li>The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission.</li> +</ol> +<pre>THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</pre> +<p>This is the BSD license which is less restrictive than GNU's GPL (General Public +License).</p> <h2><a name="label:2" id="label:2">Contributors</a></h2><!-- RDLabel: "Contributors" --> <dl> <dt><a name="label:3" id="label:3">Michael Neumann</a></dt><!-- RDLabel: "Michael Neumann" --> @@ -68,8 +81,13 @@ <dd> <p>Fixed bug in DBD ODBC (method columns) and proxyserver.</p> </dd> +<dt><a name="label:13" id="label:13">James F. Hranicky</a></dt><!-- RDLabel: "James F. Hranicky" --> +<dd> +<p>Patch for DBD Pg (cache PGResult#result in Tuples) which increases +performance by a factor around 100</p> +</dd> </dl> -<h2><a name="label:13" id="label:13">Database Drivers (DBDs)</a></h2><!-- RDLabel: "Database Drivers (DBDs)" --> +<h2><a name="label:14" id="label:14">Database Drivers (DBDs)</a></h2><!-- RDLabel: "Database Drivers (DBDs)" --> <ul> <li><p>ADO (ActiveX Data Objects) <em>(dbd_ado)</em></p> <p>depend on WinOLE from RAA.</p></li> @@ -100,46 +118,46 @@ <li><p>Sybase <em>(dbd_sybase)</em></p> <p>this DBD is currently outdated and will <em>not</em> work with DBI versions > 0.0.4 !!! </p></li> </ul> -<h2><a name="label:14" id="label:14">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" --> +<h2><a name="label:15" id="label:15">ChangeLog</a></h2><!-- RDLabel: "ChangeLog" --> <p>See <a href="http://ruby-dbi.sourceforge.net/ChangeLog.html"><URL:http://ruby-dbi.sourceforge.net/ChangeLog.html></a>.</p> -<h2><a name="label:15" id="label:15">ToDo</a></h2><!-- RDLabel: "ToDo" --> +<h2><a name="label:16" id="label:16">ToDo</a></h2><!-- RDLabel: "ToDo" --> <p>See <a href="http://ruby-dbi.sourceforge.net/ToDo.html"><URL:http://ruby-dbi.sourceforge.net/ToDo.html></a>.</p> -<h2><a name="label:16" id="label:16">Download</a></h2><!-- RDLabel: "Download" --> +<h2><a name="label:17" id="label:17">Download</a></h2><!-- RDLabel: "Download" --> <p>Ruby/DBI is available for from the <a href="http://sourceforge.net/project/showfiles.php?group_id=43737">SourceForge project page</a>.</p> <p>If you're running FreeBSD or NetBSD, have a look at their package collections. FreeBSD has for DBI and each DBD an easy to install package, NetBSD currently only for PostgreSQL but more is to come.</p> <p>A NetBSD package for MySQL is available at <a href="http://www.fantasy-coders.de/ruby/ruby-mysql-2.4.tar.gz"><URL:http://www.fantasy-coders.de/ruby/ruby-mysql-2.4.tar.gz></a>.</p> -<h2><a name="label:17" id="label:17">Installation</a></h2><!-- RDLabel: "Installation" --> +<h2><a name="label:18" id="label:18">Installation</a></h2><!-- RDLabel: "Installation" --> <p>All available DBDs come with this package, but you should only install the DBDs you really need.</p> -<h3><a name="label:18" id="label:18">To install all:</a></h3><!-- RDLabel: "To install all:" --> +<h3><a name="label:19" id="label:19">To install all:</a></h3><!-- RDLabel: "To install all:" --> <pre>ruby setup.rb config ruby setup.rb setup ruby setup.rb install</pre> -<h3><a name="label:19" id="label:19">To install dbi and some DBDs:</a></h3><!-- RDLabel: "To install dbi and some DBDs:" --> +<h3><a name="label:20" id="label:20">To install dbi and some DBDs:</a></h3><!-- RDLabel: "To install dbi and some DBDs:" --> <pre>ruby setup.rb config --with=dbi,dbd_pg.... ruby setup.rb setup ruby setup.rb install</pre> <p>Choose the packages to install by specifing them after the option <code>--with</code>.</p> -<h2><a name="label:20" id="label:20">Mailing List</a></h2><!-- RDLabel: "Mailing List" --> +<h2><a name="label:21" id="label:21">Mailing List</a></h2><!-- RDLabel: "Mailing List" --> <p>A mailinglist for DBI-specific discussions is available from the <a href="http://sourceforge.net/projects/ruby-dbi">SourceForge project page</a>.</p> <p>Our former mailing-list was at <a href="http://groups.yahoo.com/group/ruby-dbi-talk"><URL:http://groups.yahoo.com/group/ruby-dbi-talk></a>; please, don't use it!</p> -<h2><a name="label:21" id="label:21">Documentation</a></h2><!-- RDLabel: "Documentation" --> +<h2><a name="label:22" id="label:22">Documentation</a></h2><!-- RDLabel: "Documentation" --> <p>See the directories lib/*/doc or ext/*/doc for DBI and DBD specific informations.</p> <p>The DBI specification is lib/dbi/doc/DBI_SPEC or lib/dbi/doc/html/DBI_SPEC.html or available from WWW at <a href="http://ruby-dbi.sourceforge.net/DBI_SPEC.html"><URL:http://ruby-dbi.sourceforge.net/DBI_SPEC.html></a>.</p> <p>The DBD specification (how to write a database driver) is lib/dbi/doc/DBD_SPEC or lib/dbi/doc/html/DBD_SPEC.html or available from WWW at <a href="http://ruby-dbi.sourceforge.net/DBD_SPEC.html"><URL:http://ruby-dbi.sourceforge.net/DBD_SPEC.html></a>.</p> -<h2><a name="label:22" id="label:22">Applications</a></h2><!-- RDLabel: "Applications" --> -<h3><a name="label:23" id="label:23">sqlsh.rb</a></h3><!-- RDLabel: "sqlsh.rb" --> +<h2><a name="label:23" id="label:23">Applications</a></h2><!-- RDLabel: "Applications" --> +<h3><a name="label:24" id="label:24">sqlsh.rb</a></h3><!-- RDLabel: "sqlsh.rb" --> <p>The SQL command line interpreter sqlsh.rb is available in directory bin/commandline. It gets installed by default.</p> -<h2><a name="label:24" id="label:24">Examples</a></h2><!-- RDLabel: "Examples" --> +<h2><a name="label:25" id="label:25">Examples</a></h2><!-- RDLabel: "Examples" --> <p>Examples can be found in the examples/ subdirectory. In this directory there is the file proxyserver.rb which has to be run if you use the DBD::Proxy, to access databases remote over a TCP/IP network. </p> -<h3><a name="label:25" id="label:25">A simple example</a></h3><!-- RDLabel: "A simple example" --> +<h3><a name="label:26" id="label:26">A simple example</a></h3><!-- RDLabel: "A simple example" --> <pre>require 'dbi' # connect to a datbase @@ -163,7 +181,7 @@ dbh.do('delete from simple01 where internal_id > 10') dbh.disconnect</pre> -<h3><a name="label:26" id="label:26">The same using Ruby's features</a></h3><!-- RDLabel: "The same using Ruby's features" --> +<h3><a name="label:27" id="label:27">The same using Ruby's features</a></h3><!-- RDLabel: "The same using Ruby's features" --> <pre>require 'dbi' DBI.connect('DBI:Mysql:test', 'testuser', 'testpwd') do | dbh | |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_interbase In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_interbase Modified Files: InterBase.rb Log Message: license changed from GNU GPL to BSD Index: InterBase.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_interbase/InterBase.rb,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- InterBase.rb 7 Jun 2001 10:42:13 -0000 1.3 +++ InterBase.rb 3 Jul 2002 16:48:35 -0000 1.4 @@ -1,27 +1,34 @@ -# +# # DBD::InterBase -# $Id$ +# +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# Version : 0.1 -# Author : Michael Neumann (ne...@s-...) +# All rights reserved. # -# Copyright (c) 2001 Michael Neumann +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - require "interbase" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbi In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbi Modified Files: dbi.rb Log Message: license changed from GNU GPL to BSD Index: dbi.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbi/dbi.rb,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- dbi.rb 21 May 2002 18:41:29 -0000 1.29 +++ dbi.rb 3 Jul 2002 16:48:36 -0000 1.30 @@ -1,24 +1,34 @@ -# Ruby/DBI -# $Id$ -# -# Author : Michael Neumann (ne...@s-...) # -# Copyright (c) 2001 Michael Neumann +# Ruby/DBI # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> # -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# $Id$ +# require "dbi/row" require "dbi/utils" |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_db2 In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_db2 Modified Files: DB2.rb Log Message: license changed from GNU GPL to BSD Index: DB2.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_db2/DB2.rb,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- DB2.rb 9 Nov 2001 01:32:52 -0000 1.5 +++ DB2.rb 3 Jul 2002 16:48:35 -0000 1.6 @@ -1,17 +1,34 @@ -# DBD DB2 driver for Ruby's DBI # -# Based on (and requires) the "IBM DB2 Module for Ruby" -# by myself (Michael Neumann) <ne...@s-...> http://www.fantasy-coders.de/ruby +# DB2 driver for Ruby's DBI # -# Version : $Id$ -# Author : Michael Neumann (ne...@s-...) -# Homepage: http://www.s-direktnet.de/homepages/neumann/ -# DBD API : 0.1 +# Copyright (c) 2001, 2002 Michael Neumann <ne...@s-...> +# +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Copyright (c) 2001 Michael Neumann +# $Id$ # -# This program is released under the same terms as Ruby. - require 'db2/db2cli.rb' |
|
From: Michael N. <mne...@us...> - 2002-07-03 16:48:41
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_pg In directory usw-pr-cvs1:/tmp/cvs-serv16447/lib/dbd_pg Modified Files: Pg.rb Log Message: license changed from GNU GPL to BSD Index: Pg.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_pg/Pg.rb,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- Pg.rb 13 Jun 2002 15:45:18 -0000 1.19 +++ Pg.rb 3 Jul 2002 16:48:36 -0000 1.20 @@ -1,4 +1,32 @@ # +# DBD::Pg +# +# Copyright (c) 2001, 2002 Jim Weirich, Michael Neumann <ne...@s-...> +# +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# # $Id$ # |
|
From: Michael N. <mne...@us...> - 2002-06-13 15:46:00
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_pg/test
In directory usw-pr-cvs1:/tmp/cvs-serv7614
Added Files:
test_bytea.rb
Log Message:
initial creation
--- NEW FILE: test_bytea.rb ---
require "dbi"
require "../Pg"
class MyDB < DBI::DBD::Pg::Database
def initialize; end
end
$encoder = MyDB.new
$decoder = DBI::DBD::Pg::PgCoerce.new
# random string test
LEN = 50
STR = " " * LEN
50_000.times do
for i in 0...LEN
STR[i] = (rand * 256).to_i.chr
end
encoded = $encoder.__encode_bytea(STR.dup)
decoded = $decoder.as_bytea(encoded)
unless STR == decoded
p STR
puts "---------------"
p encoded
puts "---------------"
p decoded
raise "conversion failed!"
end
end
|
|
From: Michael N. <mne...@us...> - 2002-06-13 15:45:23
|
Update of /cvsroot/ruby-dbi/src/lib/dbd_pg
In directory usw-pr-cvs1:/tmp/cvs-serv7023
Modified Files:
Pg.rb
Log Message:
added method Database#__encode_bytea; decode values of type bytea to string
Index: Pg.rb
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbd_pg/Pg.rb,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Pg.rb 17 Apr 2002 13:38:38 -0000 1.18
+++ Pg.rb 13 Jun 2002 15:45:18 -0000 1.19
@@ -8,7 +8,7 @@
module DBD
module Pg
- VERSION = "0.2.1"
+ VERSION = "0.3.0"
USED_DBD_VERSION = "0.2"
class Driver < DBI::BaseDriver
@@ -285,7 +285,7 @@
def load_type_map
@type_map = Hash.new
- @coerce = DBI::SQL::BasicQuote::Coerce.new
+ @coerce = PgCoerce.new
res = send_sql("SELECT typname, typelem FROM pg_type")
@@ -298,6 +298,7 @@
when '_float4','_float8' then :as_float
when '_timestamp' then :as_timestamp
when '_date' then :as_date
+ when '_bytea' then :as_bytea
else :as_str
end
}
@@ -358,6 +359,21 @@
raise DBI::DatabaseError.new(err.message)
end
+ #
+ # encodes a string as bytea value.
+ #
+ # for encoding rules see:
+ # http://www.postgresql.org/idocs/index.php?datatype-binary.html
+ #
+ def __encode_bytea(str)
+ a = str.split(/\\/, -1).collect! {|s|
+ s.gsub!(/'/, "\\\\047") # ' => \\047
+ s.gsub!(/\000/, "\\\\000") # \0 => \\000
+ s
+ }
+ a.join("\\\\") # \ => \\
+ end
+
end # Database
################################################################
@@ -478,7 +494,22 @@
end
end # Tuples
-
+
+ ################################################################
+ class PgCoerce < DBI::SQL::BasicQuote::Coerce
+ #
+ # for decoding rules see:
+ # http://www.postgresql.org/idocs/index.php?datatype-binary.html
+ #
+ def as_bytea(str)
+ a = str.split(/\\\\/, -1).collect! {|s|
+ s.gsub!(/\\[0-7][0-7][0-7]/) {|o| o[1..-1].oct.chr} # \### => chr(###)
+ s
+ }
+ a.join("\\") # \\ => \
+ end
+ end
+
end # module Pg
end # module DBD
end # module DBI
|
|
From: Michael N. <mne...@us...> - 2002-05-21 19:38:06
|
Update of /cvsroot/ruby-dbi/src/lib/dbi/doc In directory usw-pr-cvs1:/tmp/cvs-serv6362 Modified Files: ChangeLog ToDo Log Message: * Index: ChangeLog =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbi/doc/ChangeLog,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- ChangeLog 14 May 2002 18:05:34 -0000 1.19 +++ ChangeLog 21 May 2002 19:01:30 -0000 1.20 @@ -1,5 +1,12 @@ =begin +: 0.0.15 (2002-05-21) + +* added example trace_test.rb +* moved constant VERSION from dbi.rb to new file version.rb +* explicitly initialize @trace_mode and @trace_output in Handle#initialize (ommits disturbing warning messages) +* dbd_mysql: added driver specific function insert_id applicable to DatabaseHandle objects + : 0.0.14 (2002-05-14) * dbd_mysql: fixed bug: method #do and #execute both set query_with_result of Index: ToDo =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbi/doc/ToDo,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ToDo 14 May 2002 18:09:28 -0000 1.7 +++ ToDo 21 May 2002 19:01:30 -0000 1.8 @@ -1,7 +1,6 @@ =begin = ToDo -* version.rb; don't update everytime dbi.rb when version changes * SQL statement parser like Perl's SQL::Statement * LDAP DBD * column_info: precision == column_size or == column_size - scale ??? @@ -25,6 +24,7 @@ = Done +* version.rb; don't update everytime dbi.rb when version changes * fetch_all should always return an array, as well as select_all etc., fetch_many always [] * get a Driver object, call methods on it * blob_import etc. for DBD::Pg |