Changeset: 48d2ce88be57 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=48d2ce88be57 Removed Files: clients/examples/python/Makefile.ag clients/examples/python/sqlsample.py.in Branch: Oct2012 Log Message:
build-sys: we not longer have anything to install from here diffs (83 lines): diff --git a/clients/examples/python/Makefile.ag b/clients/examples/python/Makefile.ag deleted file mode 100644 --- a/clients/examples/python/Makefile.ag +++ /dev/null @@ -1,24 +0,0 @@ -# The contents of this file are subject to the MonetDB Public License -# Version 1.1 (the "License"); you may not use this file except in -# compliance with the License. You may obtain a copy of the License at -# http://www.monetdb.org/Legal/MonetDBLicense -# -# Software distributed under the License is distributed on an "AS IS" -# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the -# License for the specific language governing rights and limitations -# under the License. -# -# The Original Code is the MonetDB Database System. -# -# The Initial Developer of the Original Code is CWI. -# Portions created by CWI are Copyright (C) 1997-July 2008 CWI. -# Copyright August 2008-2012 MonetDB B.V. -# All Rights Reserved. - -MTSAFE - -scripts_py = { - COND = HAVE_TESTING - DIR = bindir - SOURCES = sqlsample.py.in -} diff --git a/clients/examples/python/sqlsample.py.in b/clients/examples/python/sqlsample.py.in deleted file mode 100755 --- a/clients/examples/python/sqlsample.py.in +++ /dev/null @@ -1,49 +0,0 @@ -#!@PYTHON@ - -# The contents of this file are subject to the MonetDB Public License -# Version 1.1 (the "License"); you may not use this file except in -# compliance with the License. You may obtain a copy of the License at -# http://www.monetdb.org/Legal/MonetDBLicense -# -# Software distributed under the License is distributed on an "AS IS" -# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the -# License for the specific language governing rights and limitations -# under the License. -# -# The Original Code is the MonetDB Database System. -# -# The Initial Developer of the Original Code is CWI. -# Portions created by CWI are Copyright (C) 1997-July 2008 CWI. -# Copyright August 2008-2012 MonetDB B.V. -# All Rights Reserved. - -import monetdb.sql -import sys - -dbh = monetdb.sql.Connection(port=int(sys.argv[1]),database=sys.argv[2],autocommit=True) - -cursor = dbh.cursor(); -cursor.execute('select 1;') -print(cursor.fetchall()) - -cursor = dbh.cursor(); -cursor.execute('select 2;') -print(cursor.fetchone()) - -# deliberately executing a wrong SQL statement: -try: - cursor.execute('( xyz 1);') -except monetdb.sql.OperationalError as e: - print(e) - -cursor.execute('create table python_table (i smallint,s string);'); -cursor.execute('insert into python_table values ( 3, \'three\');'); -cursor.execute('insert into python_table values ( 7, \'seven\');'); -cursor.execute('select * from python_table;'); -print(cursor.fetchall()) - -s = ((0, 'row1'), (1, 'row2')) -x = cursor.executemany("insert into python_table VALUES (%s, %s);", s) -print(x); - -cursor.execute('drop table python_table;'); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list