Changeset: 8335fa9f8107 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8335fa9f8107
Modified Files:
        clients/php/native/lib/php_monetdb.php
        clients/ruby/lib/MonetDBConnection.rb
Branch: default
Log Message:

clients: treat any language that starts with "sql" as SQL


diffs (37 lines):

diff --git a/clients/php/native/lib/php_monetdb.php 
b/clients/php/native/lib/php_monetdb.php
--- a/clients/php/native/lib/php_monetdb.php
+++ b/clients/php/native/lib/php_monetdb.php
@@ -107,7 +107,9 @@
            
            if ($lang == "") {
                $lang = "sql";
-           }
+               } else if (strstr($lang, "sql") == $lang) {
+                       $lang = "sql";
+               }
            
            $options["hashfunc"] = $hashfunc;
         $options["lang"]     = $lang;
@@ -523,4 +525,4 @@
                return FALSE;
        }
        
-?>
\ No newline at end of file
+?>
diff --git a/clients/ruby/lib/MonetDBConnection.rb 
b/clients/ruby/lib/MonetDBConnection.rb
--- a/clients/ruby/lib/MonetDBConnection.rb
+++ b/clients/ruby/lib/MonetDBConnection.rb
@@ -103,7 +103,11 @@
     if @@DEBUG == true
       require 'logger'
     end
-    
+
+    if @lang[0, 3] == 'sql'
+      @lang = "sql"
+    end
+
   end
   
   # Connect to the database, creates a new socket
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to